Lines Matching refs:NULL
170 return NULL; in alarm_new_internal()
201 CHECK(alarm != NULL); in alarm_get_remaining_ms()
220 alarm_set_internal(alarm, interval_ms, cb, data, NULL, true); in alarm_set_on_mloop()
227 CHECK(alarms != NULL); in alarm_set_internal()
228 CHECK(alarm != NULL); in alarm_set_internal()
229 CHECK(cb != NULL); in alarm_set_internal()
245 CHECK(alarms != NULL); in alarm_cancel()
269 alarm->callback = NULL; in alarm_cancel_internal()
270 alarm->data = NULL; in alarm_cancel_internal()
272 alarm->queue = NULL; in alarm_cancel_internal()
278 if ((alarms == NULL) || (alarm == NULL)) return false; in alarm_is_scheduled()
279 return (alarm->callback != NULL); in alarm_is_scheduled()
289 dispatcher_thread = NULL; in alarm_cleanup()
293 fixed_queue_free(default_callback_queue, NULL); in alarm_cleanup()
294 default_callback_queue = NULL; in alarm_cleanup()
296 default_callback_thread = NULL; in alarm_cleanup()
301 alarm_expired = NULL; in alarm_cleanup()
304 alarms = NULL; in alarm_cleanup()
308 CHECK(alarms == NULL); in lazy_initialize()
317 alarms = list_new(NULL); in lazy_initialize()
341 if (default_callback_thread == NULL) { in lazy_initialize()
347 if (default_callback_queue == NULL) { in lazy_initialize()
361 thread_post(dispatcher_thread, callback_dispatch, NULL); in lazy_initialize()
365 fixed_queue_free(default_callback_queue, NULL); in lazy_initialize()
366 default_callback_queue = NULL; in lazy_initialize()
368 default_callback_thread = NULL; in lazy_initialize()
371 dispatcher_thread = NULL; in lazy_initialize()
376 alarm_expired = NULL; in lazy_initialize()
383 alarms = NULL; in lazy_initialize()
389 CHECK(alarms != NULL); in now_ms()
408 while (fixed_queue_try_remove_from_queue(alarm->queue, alarm) != NULL) { in remove_pending_alarm()
458 CHECK(alarms != NULL); in reschedule_root_alarm()
498 timer_settime(wakeup_timer, TIMER_ABSTIME, &end_of_time, NULL); in reschedule_root_alarm()
508 if (timer_settime(wakeup_timer, TIMER_ABSTIME, &wakeup_time, NULL) == -1) in reschedule_root_alarm()
519 if (timer_settime(timer, TIMER_ABSTIME, &timer_time, NULL) == -1) in reschedule_root_alarm()
548 CHECK(queue != NULL); in alarm_register_processing_queue()
549 CHECK(thread != NULL); in alarm_register_processing_queue()
552 alarm_queue_ready, NULL); in alarm_register_processing_queue()
557 if (alarm == NULL) { in alarm_ready_generic()
579 alarm->callback = NULL; in alarm_ready_generic()
580 alarm->data = NULL; in alarm_ready_generic()
581 alarm->queue = NULL; in alarm_ready_generic()
604 CHECK(queue != NULL); in alarm_queue_ready()
666 CHECK(timer != NULL); in timer_create_internal()
730 if (alarms == NULL) { in alarm_debug_dump()