Searched refs:THREADS_NUM (Results 1 – 4 of 4) sorted by relevance
/samples/arch/smp/pi/src/ |
A 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; 90 DIGITS_NUM, THREADS_NUM); in main() 95 for (i = 0; i < THREADS_NUM; i++) { in main() 111 for (i = 0; i < THREADS_NUM; i++) { in main() 115 printk("All %d threads executed by %d cores in %d msec\n", THREADS_NUM, in main()
|
/samples/arch/smp/pktqueue/src/ |
A 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()
|
/samples/arch/smp/pktqueue/ |
A 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``),
|
/samples/arch/smp/pi/ |
A D | README.rst | 19 number of threads to use (``THREADS_NUM``).
|
Completed in 31 milliseconds