bar_destroy(3) | Library Functions Manual | bar_destroy(3) |
NAME
bar_destroy
—
destroy a thread barrier
SYNOPSIS
library “threads”
#include <threadse.h>
int
bar_destroy
(bar_t
*barrier);
DESCRIPTION
The function
bar_destroy
()
will destroy the given thread barrier barrier.
RETURN VALUES
Upon success bar_destroy
() will return
thrd_success otherwise
thrd_error will be returned.
SEE ALSO
HISTORY
The bar_destroy
() function first appeared
in the Adelsbach Enhanced Threading Library. MacOS support was added in
version 1.0.1 due to the lack of native MacOS support for thread barriers
the implementation manually implements this using mutexes and condition
variables.
AUTHORS
Jan Adelsbach <jan@jadelsbach.de>
March 30, 2025 | Linux 6.13.6-1-default |