[MacRuby-devel] [MacRuby] #337: Bug in rb_source_new_timer in gcd.c
MacRuby
ruby-noreply at macosforge.org
Wed Sep 16 14:37:16 PDT 2009
#337: Bug in rb_source_new_timer in gcd.c
----------------------------------------+-----------------------------------
Reporter: ernest.prabhakar@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
----------------------------------------+-----------------------------------
Maybe I'm missing something, but shouldn't "&delay" be in this argument
list?
rb_scan_args(argc, argv, "21", &queue, &interval, &leeway);
If not, where is delay initialized?
----
rb_source_new_timer(VALUE klass, SEL sel, int argc, VALUE* argv)
{
dispatch_time_t start_time;
VALUE queue = Qnil, interval = Qnil, delay = Qnil, leeway = Qnil;
rb_scan_args(argc, argv, "21", &queue, &interval, &leeway);
if (NIL_P(leeway)) {
leeway = INT2FIX(0);
}
if (NIL_P(delay)) {
start_time = DISPATCH_TIME_NOW;
}
else {
start_time = dispatch_walltime(NULL,
number_to_nanoseconds(delay));
}
--
Ticket URL: <http://www.macruby.org/trac/ticket/337>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list