Lines Matching refs:thread
123 static thread_t *thread; // We own this variable
219 thread = thread_new("hci_thread"); in start_up()
220 if (!thread) { in start_up()
235 …fixed_queue_register_dequeue(command_queue, thread_get_reactor(thread), event_command_ready, NULL); in start_up()
236 fixed_queue_register_dequeue(packet_queue, thread_get_reactor(thread), event_packet_ready, NULL); in start_up()
239 hal->init(&hal_callbacks, thread); in start_up()
240 low_power_manager->init(thread); in start_up()
268 thread_post(thread, event_finish_startup, NULL); in start_up()
280 if (thread) { in shut_down()
283 thread_post(thread, event_epilog, NULL); in shut_down()
285 thread_stop(thread); in shut_down()
288 thread_join(thread); in shut_down()
314 thread_free(thread); in shut_down()
315 thread = NULL; in shut_down()
337 thread_post(thread, event_postload, NULL); in do_postload()
445 thread_stop(thread); in epilog_finished_callback()
450 thread_stop(thread); in epilog_timer_expired()