Searched refs:wait_thread (Results 1 - 3 of 3) sorted by relevance

/fuchsia/zircon/system/utest/core/sync-completion/
H A Dmain.c55 thrd_t wait_thread[NUM_THREADS]; local
58 thrd_create_with_name(wait_thread + idx, sync_completion_thread_wait, NULL, "completion wait");
62 thrd_join(wait_thread[idx], NULL);
H A Dcompletion.cpp53 thrd_t wait_thread[NUM_THREADS]; local
56 thrd_create_with_name(wait_thread + idx, sync_completion_thread_wait, NULL, "completion wait");
60 thrd_join(wait_thread[idx], NULL);
/fuchsia/zircon/system/utest/core/interrupt/
H A Dinterrupt-test.c22 static bool wait_thread(zx_handle_t thread, uint32_t reason) { function
178 ASSERT_TRUE(wait_thread(thread_h, ZX_THREAD_STATE_BLOCKED_INTERRUPT), "");
183 ASSERT_TRUE(wait_thread(thread_h, ZX_THREAD_STATE_SUSPENDED), "");
187 ASSERT_TRUE(wait_thread(thread_h, ZX_THREAD_STATE_BLOCKED_INTERRUPT), "");

Completed in 28 milliseconds