Home
last modified time | relevance | path

Searched refs:NUM_THREADS (Results 1 – 3 of 3) sorted by relevance

/system/utest/core/sync-completion/
A Dcompletion.cpp65 #define NUM_THREADS 16 macro
71 thrd_t wait_thread[NUM_THREADS]; in test_completions()
73 for (int idx = 0; idx < NUM_THREADS; idx++) { in test_completions()
82 for (int idx = 0; idx < NUM_THREADS; idx++) { in test_completions()
127 thrd_t wait_thread[NUM_THREADS]; in test_signal_requeue()
128 for (int idx = 0; idx < NUM_THREADS; idx++) { in test_signal_requeue()
134 while (__atomic_load_n(&cc.started, __ATOMIC_SEQ_CST) != NUM_THREADS) { 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()
157 for (int idx = 0; idx < NUM_THREADS; idx++) { in test_signal_requeue()
[all …]
A Dmain.c50 #define NUM_THREADS 16 macro
55 thrd_t wait_thread[NUM_THREADS]; in test_completions()
57 for (int idx = 0; idx < NUM_THREADS; idx++) in test_completions()
61 for (int idx = 0; idx < NUM_THREADS; idx++) in test_completions()
/system/uapp/thread-stress/
A Dthread-stress.c12 #define NUM_THREADS 1000 macro
34 thrd_t thread[NUM_THREADS]; in main()
37 for (int i = 0; i != NUM_THREADS; ++i) { in main()
41 for (int i = 0; i != NUM_THREADS; ++i) { in main()
47 NUM_THREADS, in main()

Completed in 5 milliseconds