Lines Matching refs:NUM_THREADS
10 #define NUM_THREADS 8 macro
20 struct k_thread worker_threads[NUM_THREADS];
22 k_tid_t worker_tids[NUM_THREADS];
24 K_THREAD_STACK_ARRAY_DEFINE(worker_stacks, NUM_THREADS, STACK_SIZE);
26 int thread_deadlines[NUM_THREADS];
32 int exec_order[NUM_THREADS];
41 zassert_true(tidx >= 0 && tidx < NUM_THREADS, ""); in worker()
42 zassert_true(n_exec >= 0 && n_exec < NUM_THREADS, ""); in worker()
66 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
96 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
104 zassert_true(n_exec == NUM_THREADS, "not enough threads ran"); in ZTEST()
106 for (i = 1; i < NUM_THREADS; i++) { in ZTEST()
112 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
123 zassert_true(n_exec >= 0 && n_exec < NUM_THREADS, ""); in yield_worker()
130 zassert_true(n_exec == NUM_THREADS, ""); in yield_worker()
154 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
166 zassert_true(n_exec == NUM_THREADS, "not enough threads ran"); in ZTEST()
175 zassert_true(n_exec >= 0 && n_exec < NUM_THREADS, ""); in unqueue_worker()
195 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
205 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
216 zassert_true(n_exec == NUM_THREADS, "not enough threads ran"); in ZTEST()
218 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()