Searched refs:wait_thread (Results 1 – 4 of 4) sorted by relevance
| /system/utest/core/sync-completion/ |
| A D | completion.cpp | 71 thrd_t wait_thread[NUM_THREADS]; in test_completions() local 74 auto result = thrd_create_with_name(wait_thread + idx, sync_completion_thread_wait, in test_completions() 83 ASSERT_EQ(thrd_join(wait_thread[idx], NULL), thrd_success); in test_completions() 127 thrd_t wait_thread[NUM_THREADS]; in test_signal_requeue() local 129 auto result = thrd_create(wait_thread + idx, sync_completion_thread_wait_once, &cc); in test_signal_requeue() 139 while (!all_blocked_on_futex(wait_thread, NUM_THREADS)) { in test_signal_requeue() 147 ASSERT_TRUE(all_blocked_on_futex(wait_thread, NUM_THREADS)); in test_signal_requeue() 158 ASSERT_EQ(thrd_join(wait_thread[idx], NULL), thrd_success); in test_signal_requeue()
|
| A D | main.c | 55 thrd_t wait_thread[NUM_THREADS]; in test_completions() local 58 … thrd_create_with_name(wait_thread + idx, sync_completion_thread_wait, NULL, "completion wait"); in test_completions() 62 thrd_join(wait_thread[idx], NULL); in test_completions()
|
| /system/dev/usb/usb-peripheral-test/ |
| A D | test.cpp | 69 std::thread wait_thread (thread_func, &complete_req); in control_interrupt_test() local 85 wait_thread.join(); in control_interrupt_test() 146 std::thread wait_thread (thread_func, complete_reqs); in bulk_test() local 154 wait_thread.join(); in bulk_test()
|
| /system/utest/core/interrupt/ |
| A D | interrupt-test.cpp | 19 static bool wait_thread(const zx::thread& thread, uint32_t reason) { in wait_thread() function 155 ASSERT_TRUE(wait_thread(thread, ZX_THREAD_STATE_BLOCKED_INTERRUPT)); in interrupt_suspend_test() 160 ASSERT_TRUE(wait_thread(thread, ZX_THREAD_STATE_SUSPENDED)); in interrupt_suspend_test() 164 ASSERT_TRUE(wait_thread(thread, ZX_THREAD_STATE_BLOCKED_INTERRUPT)); in interrupt_suspend_test()
|
Completed in 5 milliseconds