| /system/utest/core/futex/ |
| A D | futex.cpp | 208 TestThread thread2(&futex_value); in TestFutexWakeupLimit() local 217 thread2.assert_thread_woken(); in TestFutexWakeupLimit() 237 TestThread thread2(&futex_value2); in TestFutexWakeupAddress() local 241 thread2.assert_thread_not_woken(); in TestFutexWakeupAddress() 245 thread2.assert_thread_not_woken(); in TestFutexWakeupAddress() 249 thread2.assert_thread_woken(); in TestFutexWakeupAddress() 294 TestThread thread2(&futex_value); in TestFutexUnqueuedOnTimeout_3() local 304 thread2.assert_thread_woken(); in TestFutexUnqueuedOnTimeout_3() 347 thread2.assert_thread_woken(); in TestFutexRequeue() 389 thread2.assert_thread_woken(); in TestFutexRequeueUnqueuedOnTimeout() [all …]
|
| /system/utest/errno/ |
| A D | errno.c | 26 pthread_t thread2, thread3; in errno_test() local 29 pthread_create(&thread2, NULL, do_test, &thread_1); in errno_test() 37 pthread_join(thread2, NULL); in errno_test()
|
| /system/utest/core/sync-mutex/ |
| A D | mutex.c | 121 thrd_t thread1, thread2, thread3; in test_mutexes() local 124 thrd_create_with_name(&thread2, mutex_thread_2, NULL, "thread 2"); in test_mutexes() 128 thrd_join(thread2, NULL); in test_mutexes() 136 thrd_t thread1, thread2, thread3; in test_try_mutexes() local 139 thrd_create_with_name(&thread2, mutex_try_thread_2, NULL, "thread 2"); in test_try_mutexes() 143 thrd_join(thread2, NULL); in test_try_mutexes()
|
| /system/utest/core/pthread-tls/ |
| A D | tls-test.c | 53 pthread_t thread2, thread3; in tls_test() local 56 pthread_create(&thread2, NULL, do_work, &thread_1); in tls_test() 64 pthread_join(thread2, NULL); in tls_test()
|
| /system/utest/core/condition-generic/ |
| A D | condition-generic.h | 22 thrd_t thread1, thread2, thread3; in condition_test() local 25 thrd_create(&thread2, cond_thread, &ctx); in condition_test() 68 thrd_join(thread2, nullptr); in condition_test()
|
| /system/utest/core/c11-mutex/ |
| A D | mutex.c | 129 thrd_t thread1, thread2, thread3; in test_mutexes() local 132 thrd_create_with_name(&thread2, mutex_thread_2, NULL, "thread 2"); in test_mutexes() 136 thrd_join(thread2, NULL); in test_mutexes() 144 thrd_t thread1, thread2, thread3; in test_try_mutexes() local 147 thrd_create_with_name(&thread2, mutex_try_thread_2, NULL, "thread 2"); in test_try_mutexes() 151 thrd_join(thread2, NULL); in test_try_mutexes()
|
| /system/utest/core/c11-condvar/ |
| A D | condvar.c | 35 thrd_t thread1, thread2, thread3; in cnd_test() local 38 thrd_create(&thread2, cond_thread, (void*)(uintptr_t)1); in cnd_test() 83 thrd_join(thread2, NULL); in cnd_test()
|
| /system/utest/core/pthread/ |
| A D | pthread.cpp | 120 pthread_t thread1, thread2, thread3; in pthread_test() local 129 pthread_create(&thread2, NULL, cond_thread2, NULL); in pthread_test() 156 pthread_join(thread2, NULL); in pthread_test() 175 pthread_create(&thread2, NULL, mutex_thread_2, NULL); in pthread_test() 181 pthread_join(thread2, NULL); in pthread_test()
|
| /system/utest/core/handle-wait/ |
| A D | handle-wait.c | 241 thrd_t thread2; in handle_wait_test() local 242 ASSERT_EQ(thrd_create(&thread2, worker_thread_func, &thread2_data), thrd_success, in handle_wait_test() 281 EXPECT_EQ(thrd_join(thread2, NULL), thrd_success, "failed to join thread"); in handle_wait_test()
|
| /system/utest/core/process/ |
| A D | process.cpp | 200 zx_handle_t thread1, thread2; in kill_channel_handle_cycle() local 203 ASSERT_EQ(zx_thread_create(proc2, "th2", 3u, 0u, &thread2), ZX_OK); in kill_channel_handle_cycle() 207 EXPECT_EQ(dup_send_handle(chan[0], thread2), ZX_OK); in kill_channel_handle_cycle() 219 EXPECT_EQ(start_mini_process_etc(proc2, thread2, vmar2, chan[1], &minip_chn[1]), in kill_channel_handle_cycle() 235 thread2, ZX_TASK_TERMINATED, zx_deadline_after(kTimeoutNs), &signals), ZX_ERR_TIMED_OUT); in kill_channel_handle_cycle() 241 thread2, ZX_TASK_TERMINATED, zx_deadline_after(kTimeoutNs), &signals), ZX_ERR_TIMED_OUT); in kill_channel_handle_cycle() 247 thread2, ZX_TASK_TERMINATED, ZX_TIME_INFINITE, &signals), ZX_OK); in kill_channel_handle_cycle() 251 EXPECT_EQ(zx_handle_close(thread2), ZX_OK); in kill_channel_handle_cycle()
|