Lines Matching refs:NULL
172 return NULL; in alarm_new_internal()
202 CHECK(alarm != NULL); in alarm_get_remaining_ms()
221 alarm_set_internal(alarm, interval_ms, cb, data, NULL, true); in alarm_set_on_mloop()
228 CHECK(alarms != NULL); in alarm_set_internal()
229 CHECK(alarm != NULL); in alarm_set_internal()
230 CHECK(cb != NULL); in alarm_set_internal()
246 CHECK(alarms != NULL); in alarm_cancel()
270 alarm->callback = NULL; in alarm_cancel_internal()
271 alarm->data = NULL; in alarm_cancel_internal()
273 alarm->queue = NULL; in alarm_cancel_internal()
279 if ((alarms == NULL) || (alarm == NULL)) return false; in alarm_is_scheduled()
280 return (alarm->callback != NULL); in alarm_is_scheduled()
290 dispatcher_thread = NULL; in alarm_cleanup()
294 fixed_queue_free(default_callback_queue, NULL); in alarm_cleanup()
295 default_callback_queue = NULL; in alarm_cleanup()
297 default_callback_thread = NULL; in alarm_cleanup()
302 alarm_expired = NULL; in alarm_cleanup()
305 alarms = NULL; in alarm_cleanup()
309 CHECK(alarms == NULL); in lazy_initialize()
318 alarms = list_new(NULL); in lazy_initialize()
342 if (default_callback_thread == NULL) { in lazy_initialize()
349 if (default_callback_queue == NULL) { in lazy_initialize()
364 thread_post(dispatcher_thread, callback_dispatch, NULL); in lazy_initialize()
368 fixed_queue_free(default_callback_queue, NULL); in lazy_initialize()
369 default_callback_queue = NULL; in lazy_initialize()
371 default_callback_thread = NULL; in lazy_initialize()
374 dispatcher_thread = NULL; in lazy_initialize()
379 alarm_expired = NULL; in lazy_initialize()
386 alarms = NULL; in lazy_initialize()
392 CHECK(alarms != NULL); in now_ms()
412 while (fixed_queue_try_remove_from_queue(alarm->queue, alarm) != NULL) { in remove_pending_alarm()
462 CHECK(alarms != NULL); in reschedule_root_alarm()
502 timer_settime(wakeup_timer, TIMER_ABSTIME, &end_of_time, NULL); in reschedule_root_alarm()
512 if (timer_settime(wakeup_timer, TIMER_ABSTIME, &wakeup_time, NULL) == -1) in reschedule_root_alarm()
524 if (timer_settime(timer, TIMER_ABSTIME, &timer_time, NULL) == -1) in reschedule_root_alarm()
553 CHECK(queue != NULL); in alarm_register_processing_queue()
554 CHECK(thread != NULL); in alarm_register_processing_queue()
557 alarm_queue_ready, NULL); in alarm_register_processing_queue()
562 if (alarm == NULL) { in alarm_ready_generic()
584 alarm->callback = NULL; in alarm_ready_generic()
585 alarm->data = NULL; in alarm_ready_generic()
586 alarm->queue = NULL; in alarm_ready_generic()
609 CHECK(queue != NULL); in alarm_queue_ready()
672 CHECK(timer != NULL); in timer_create_internal()
736 if (alarms == NULL) { in alarm_debug_dump()