Home
last modified time | relevance | path

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

/Zephyr-latest/samples/philosophers/src/
Dphil_obj_abstract.h43 #define fork_t struct k_sem * macro
59 #define fork_t struct k_mutex * macro
75 #define fork_t struct k_stack * macro
95 #define fork_t struct k_fifo * macro
117 #define fork_t struct k_lifo * macro
149 static fork_t forks[NUM_PHIL] = {
154 (fork_t)&fork_objs[0], (fork_t)&fork_objs[1], (fork_t)&fork_objs[2],
155 (fork_t)&fork_objs[3], (fork_t)&fork_objs[4], (fork_t)&fork_objs[5],
Dmain.c145 fork_t my_fork1; in philosopher()
146 fork_t my_fork2; in philosopher()
/Zephyr-latest/samples/posix/philosophers/src/
Dmain.c31 typedef pthread_mutex_t *fork_t; typedef
38 static inline void fork_init(fork_t frk) in fork_init()
50 static inline fork_t fork(size_t idx) in fork()
55 static inline void take(fork_t frk) in take()
67 static inline void drop(fork_t frk) in drop()
144 fork_t my_fork1; in philosopher()
145 fork_t my_fork2; in philosopher()
/Zephyr-latest/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/
Dphil_obj_abstract.h45 #define fork_t osSemaphoreId macro
59 #define fork_t osMutexId macro
Dmain.c145 fork_t fork1; in philosopher()
146 fork_t fork2; in philosopher()
/Zephyr-latest/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/
Dphil_obj_abstract.h49 #define fork_t osSemaphoreId_t macro
65 #define fork_t osMutexAttr_t macro
Dmain.c170 fork_t fork1; in philosopher()
171 fork_t fork2; in philosopher()