Searched refs:THREADS_NUM (Results 1 – 7 of 7) sorted by relevance
/Zephyr-latest/samples/arch/smp/pi/src/ |
D | main.c | 11 #define THREADS_NUM 16 macro 28 static K_THREAD_STACK_ARRAY_DEFINE(tstack, THREADS_NUM, STACK_SIZE); 29 static struct k_thread tthread[THREADS_NUM]; 30 static char th_buffer[THREADS_NUM][DIGITS_NUM + 1]; 31 static atomic_t th_counter = THREADS_NUM; 86 DIGITS_NUM, THREADS_NUM); in main() 91 for (i = 0; i < THREADS_NUM; i++) { in main() 109 for (i = 0; i < THREADS_NUM; i++) { in main() 113 printk("All %d threads executed by %d cores in %d msec\n", THREADS_NUM, in main()
|
/Zephyr-latest/tests/kernel/sched/schedule_api/src/ |
D | test_sched_timeslice_and_lock.c | 8 #define THREADS_NUM 3 macro 11 BUILD_ASSERT(THREADS_NUM <= MAX_NUM_THREAD); 13 static struct thread_data tdata[THREADS_NUM]; 14 static struct k_thread tthread[THREADS_NUM]; 39 for (int i = 0; i < THREADS_NUM; i++) { in setup_threads() 57 for (int i = 0; i < THREADS_NUM; i++) { in spawn_threads() 69 for (int i = 0; i < THREADS_NUM; i++) { in teardown_threads() 111 for (int i = 2; i < THREADS_NUM; i++) { in ZTEST() 135 for (int i = 0; i < THREADS_NUM; i++) { in ZTEST() 152 for (int i = 0; i < THREADS_NUM; i++) { in ZTEST() [all …]
|
/Zephyr-latest/samples/arch/smp/pktqueue/src/ |
D | main.c | 13 #define THREADS_NUM (CONFIG_MP_MAX_NUM_CPUS+1) macro 30 static struct k_thread tthread[THREADS_NUM*QUEUE_NUM]; 51 static K_THREAD_STACK_ARRAY_DEFINE(tstack, THREADS_NUM*QUEUE_NUM, STACK_SIZE); 136 for (int i = 0; i < THREADS_NUM; i++) { in queue_thread() 137 k_thread_create(&tthread[i+THREADS_NUM*queue_num], in queue_thread() 138 tstack[i+THREADS_NUM*queue_num], STACK_SIZE, in queue_thread() 164 QUEUE_NUM, THREADS_NUM, arch_num_cpus(), SIZE_OF_QUEUE); in main()
|
/Zephyr-latest/tests/kernel/common/src/ |
D | atomic.c | 20 #define THREADS_NUM 2 macro 24 static K_THREAD_STACK_ARRAY_DEFINE(stack, THREADS_NUM, STACK_SIZE); 26 static struct k_thread thread[THREADS_NUM]; 319 k_tid_t tid[THREADS_NUM]; in ZTEST() 324 for (int i = 0; i < THREADS_NUM; i++) { in ZTEST() 330 for (int i = 0; i < THREADS_NUM; i++) { in ZTEST() 337 zassert_true(total_atomic == (TEST_CYCLE * THREADS_NUM), in ZTEST()
|
/Zephyr-latest/tests/lib/lockfree/src/ |
D | test_spsc.c | 192 #define THREADS_NUM 2 macro 201 static struct thread_info tinfo[THREADS_NUM]; 202 static struct k_thread tthread[THREADS_NUM]; 203 static K_THREAD_STACK_ARRAY_DEFINE(tstack, THREADS_NUM, STACK_SIZE);
|
/Zephyr-latest/samples/arch/smp/pktqueue/ |
D | README.rst | 42 Then in each queue-related thread several(defined in THREADS_NUM) threads are created. Each 56 the number of threads per pair of queues(``THREADS_NUM``),
|
/Zephyr-latest/samples/arch/smp/pi/ |
D | README.rst | 19 number of threads to use (``THREADS_NUM``).
|