Home
last modified time | relevance | path

Searched refs:NUM_PHIL (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-3.5.0/samples/philosophers/src/
Dmain.c61 #ifndef NUM_PHIL
62 #define NUM_PHIL 6 macro
137 return id == (NUM_PHIL - 1); in is_last_philosopher()
188 return -(phil - (NUM_PHIL/2)); in new_prio()
204 for (int i = 0; i < NUM_PHIL; i++) { in init_objects()
216 for (int i = 0; i < NUM_PHIL; i++) { in start_threads()
229 k_object_access_grant(fork((i + 1) % NUM_PHIL), &threads[i]); in start_threads()
Dphil_obj_abstract.h39 } orig_packet[NUM_PHIL];
146 fork_obj_t fork_objs[NUM_PHIL];
149 static fork_t forks[NUM_PHIL] = {
159 static K_THREAD_STACK_ARRAY_DEFINE(stacks, NUM_PHIL, STACK_SIZE);
160 static struct k_thread threads[NUM_PHIL];
/Zephyr-Core-3.5.0/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/
Dmain.c60 #ifndef NUM_PHIL
61 #define NUM_PHIL 6 macro
66 osSemaphoreId_t forks[NUM_PHIL];
71 static K_THREAD_STACK_ARRAY_DEFINE(stacks, NUM_PHIL, STACK_SIZE);
165 return id == (NUM_PHIL - 1); in is_last_philosopher()
218 for (int i = 0; i < NUM_PHIL; i++) { in init_objects()
225 for (int i = 0; i < NUM_PHIL; i++) { in start_threads()
/Zephyr-Core-3.5.0/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/
Dmain.c64 #ifndef NUM_PHIL
65 #define NUM_PHIL 6 macro
70 osSemaphoreId forks[NUM_PHIL];
140 return id == (NUM_PHIL - 1); in is_last_philosopher()
197 for (int i = 0; i < NUM_PHIL; i++) { in start_threads()
/Zephyr-Core-3.5.0/doc/releases/
Drelease-notes-1.6.rst315 * ``ZEP-1077`` - "samples/philosophers/unified" build warnings with NUM_PHIL<6