Skip to content

Do thread barriers exist in Zephyr? #84981

Answered by ldomaigne
alexpaschoaletto asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexpaschoaletto
Comment options

Answer selected by alexpaschoaletto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants