Lines Matching defs:timer_source
236 dispatch_source_t timer_source;
794 if (timer_source)
795 dispatch_source_set_timer(timer_source, dispatch_time(DISPATCH_TIME_NOW, (uint64_t)timeOut * NSEC_PER_SEC),
828 if (timer_source)
829 dispatch_source_set_timer(timer_source, dispatch_time(DISPATCH_TIME_NOW, (uint64_t)timeOut * NSEC_PER_SEC),
1208 timer_source = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, main_queue);
1209 if (timer_source)
1212 dispatch_source_set_timer(timer_source, dispatch_time(DISPATCH_TIME_NOW, (uint64_t)timeOut * NSEC_PER_SEC),
1214 dispatch_source_set_event_handler(timer_source, ^{myTimerCallBack();});
1215 dispatch_resume(timer_source);