Searched refs:NUM_PHIL (Results 1 – 5 of 5) sorted by relevance
61 #ifndef NUM_PHIL62 #define NUM_PHIL 6 macro137 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()
39 } 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];
60 #ifndef NUM_PHIL61 #define NUM_PHIL 6 macro66 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()
64 #ifndef NUM_PHIL65 #define NUM_PHIL 6 macro70 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()
315 * ``ZEP-1077`` - "samples/philosophers/unified" build warnings with NUM_PHIL<6