bar_wait(3) | Library Functions Manual | bar_wait(3) |
NAME
bar_wait
— wait at
thread barrier
SYNOPSIS
library “threads”
#include <threadse.h>
int
bar_wait
(bar_t
*barrier);
DESCRIPTION
The function
bar_wait
()
will stall stop the current thread and wait until the correct amount of
threads are waiting at the given thread barrier, as
specified at the initialization of the barrier in
bar_init(3).
RETURN VALUES
Upon success bar_wait
() will return
thrd_success for exactly one thread and
thrd_busy for all others. In case of an error
thrd_error will be returned.
SEE ALSO
HISTORY
The bar_wait
() function first appeared in
the Adelsbach Enhanced Threading Library.
AUTHORS
Jan Adelsbach <jan@jadelsbach.de>
May 9, 2020 | Debian |