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()
348 if (default_callback_queue == NULL) { in lazy_initialize()
362 thread_post(dispatcher_thread, callback_dispatch, NULL); in lazy_initialize()
366 fixed_queue_free(default_callback_queue, NULL); in lazy_initialize()
367 default_callback_queue = NULL; in lazy_initialize()
369 default_callback_thread = NULL; in lazy_initialize()
372 dispatcher_thread = NULL; in lazy_initialize()
377 alarm_expired = NULL; in lazy_initialize()
384 alarms = NULL; in lazy_initialize()
390 CHECK(alarms != NULL); in now_ms()
409 while (fixed_queue_try_remove_from_queue(alarm->queue, alarm) != NULL) { in remove_pending_alarm()
459 CHECK(alarms != NULL); in reschedule_root_alarm()
499 timer_settime(wakeup_timer, TIMER_ABSTIME, &end_of_time, NULL); in reschedule_root_alarm()
509 if (timer_settime(wakeup_timer, TIMER_ABSTIME, &wakeup_time, NULL) == -1) in reschedule_root_alarm()
520 if (timer_settime(timer, TIMER_ABSTIME, &timer_time, NULL) == -1) in reschedule_root_alarm()
549 CHECK(queue != NULL); in alarm_register_processing_queue()
550 CHECK(thread != NULL); in alarm_register_processing_queue()
553 alarm_queue_ready, NULL); in alarm_register_processing_queue()
558 if (alarm == NULL) { in alarm_ready_generic()
580 alarm->callback = NULL; in alarm_ready_generic()
581 alarm->data = NULL; in alarm_ready_generic()
582 alarm->queue = NULL; in alarm_ready_generic()
605 CHECK(queue != NULL); in alarm_queue_ready()
668 CHECK(timer != NULL); in timer_create_internal()
732 if (alarms == NULL) { in alarm_debug_dump()