Ticket #337 (closed defect: fixed)
Bug in rb_source_new_timer in gcd.c
| Reported by: | ernest.prabhakar@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | minor | Milestone: | MacRuby 0.5 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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));
}
Change History
Note: See
TracTickets for help on using
tickets.

