Home
last modified time | relevance | path

Searched refs:THREADS_NUM (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/samples/arch/smp/pi/src/
Dmain.c11 #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/
Dtest_sched_timeslice_and_lock.c8 #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/
Dmain.c13 #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/
Datomic.c20 #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/
Dtest_spsc.c192 #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/
DREADME.rst42 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/
DREADME.rst19 number of threads to use (``THREADS_NUM``).