Searched refs:NUM_THREAD (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/kernel/sched/schedule_api/src/ |
D | test_priority_scheduling.c | 12 #define NUM_THREAD 2 macro 15 #define NUM_THREAD 3 macro 17 #define NUM_THREAD 10 macro 22 BUILD_ASSERT(NUM_THREAD <= MAX_NUM_THREAD); 25 static K_SEM_DEFINE(sema2, 0, NUM_THREAD); 28 static K_SEM_DEFINE(sema3, 0, NUM_THREAD); 31 static struct k_thread t[NUM_THREAD]; 39 int thread_parameter = (idx == (NUM_THREAD - 1)) ? '\n' : in thread_tslice() 47 thread_idx = (thread_idx + 1) % (NUM_THREAD); in thread_tslice() 70 k_tid_t tid[NUM_THREAD]; in ZTEST() [all …]
|
D | test_slice_scheduling.c | 14 #define NUM_THREAD 2 macro 17 #define NUM_THREAD 3 macro 19 #define NUM_THREAD 10 macro 24 BUILD_ASSERT(NUM_THREAD <= MAX_NUM_THREAD); 31 static struct k_thread t[NUM_THREAD]; 33 static K_SEM_DEFINE(sema1, 0, NUM_THREAD); 44 int thread_parameter = (idx == (NUM_THREAD - 1)) ? '\n' : in thread_tslice() 67 thread_idx = (thread_idx + 1) % (NUM_THREAD); in thread_tslice() 92 k_tid_t tid[NUM_THREAD]; in ZTEST() 105 for (int i = 0; i < NUM_THREAD; i++) { in ZTEST() [all …]
|
D | test_sched_timeslice_reset.c | 12 #define NUM_THREAD 3 macro 14 BUILD_ASSERT(NUM_THREAD <= MAX_NUM_THREAD); 34 K_SEM_DEFINE(sema, 0, NUM_THREAD); 92 thread_idx = (thread_idx + 1) % NUM_THREAD; in thread_time_slice() 130 k_tid_t tid[NUM_THREAD]; in ZTEST() 131 struct k_thread t[NUM_THREAD]; in ZTEST() 164 for (int i = 0; i < NUM_THREAD; i++) { in ZTEST() 184 k_sleep(K_TICKS(slice_ticks * (NUM_THREAD + 1))); in ZTEST() 185 for (int i = 0; i < NUM_THREAD; i++) { in ZTEST() 190 for (int i = 0; i < NUM_THREAD; i++) { in ZTEST()
|
/Zephyr-latest/tests/kernel/tickless/tickless_concept/src/ |
D | main.c | 11 #define NUM_THREAD 4 macro 12 static K_THREAD_STACK_ARRAY_DEFINE(tstack, NUM_THREAD, STACK_SIZE); 13 static struct k_thread tdata[NUM_THREAD]; 37 K_SEM_DEFINE(sema, 0, NUM_THREAD); 98 k_tid_t tid[NUM_THREAD]; in ZTEST() 105 for (int i = 0; i < NUM_THREAD; i++) { in ZTEST() 113 for (int i = 0; i < NUM_THREAD; i++) { in ZTEST() 118 for (int i = 0; i < NUM_THREAD; i++) { in ZTEST()
|