Lines Matching refs:thread
123 static thread_t *thread; // We own this variable
222 thread = thread_new("hci_thread"); in start_up()
223 if (!thread) { in start_up()
243 …fixed_queue_register_dequeue(command_queue, thread_get_reactor(thread), event_command_ready, NULL); in start_up()
244 fixed_queue_register_dequeue(packet_queue, thread_get_reactor(thread), event_packet_ready, NULL); in start_up()
247 hal->init(&hal_callbacks, thread); in start_up()
248 low_power_manager->init(thread); in start_up()
275 thread_post(thread, event_finish_startup, NULL); in start_up()
288 if (thread) { in shut_down()
291 thread_post(thread, event_epilog, NULL); in shut_down()
293 thread_stop(thread); in shut_down()
296 thread_join(thread); in shut_down()
326 thread_free(thread); in shut_down()
327 thread = NULL; in shut_down()
349 thread_post(thread, event_postload, NULL); in do_postload()
466 thread_stop(thread); in epilog_finished_callback()
471 thread_stop(thread); in epilog_timer_expired()