Do thread barriers exist in Zephyr? #84981
-
Does anyone know if barriers for thread synchronization exist in Zephyr? Like the ones in RTEMS. I've been interested in porting a project that uses those to Zephyr, but so far haven't found anything in Zephyr's codebase apart from this. It doesn't look much like it is meant to be used in an application, though, but only within the kernel instead. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Zephyr does not provide a specific kernel API for barrier. It is always possible to construct this higher-level synchronization mechanism using condition variable and mutex (or semaphore). Zephyr's POSIX layer offers |
Beta Was this translation helpful? Give feedback.
Hi,
Zephyr does not provide a specific kernel API for barrier. It is always possible to construct this higher-level synchronization mechanism using condition variable and mutex (or semaphore).
Zephyr's POSIX layer offers
pthread_barrier
through Kconfig . These appear to be similar to RTMES barriers based on my initial investigation. So that might an option for you.