Adelsbach Enhanced Threading Library Version 1.0.1

Manual Pages (DD-00013-002)

Enhanced Threading Library > bar_destroy (3)
HTML TXT PDF PS
bar_destroy(3) Library Functions Manual bar_destroy(3)

bar_destroydestroy a thread barrier

library “threads”
#include <threadse.h>

int
bar_destroy(bar_t *barrier);

The function () will destroy the given thread barrier barrier.

Upon success bar_destroy() will return thrd_success otherwise thrd_error will be returned.

bar_init(3) bar_wait(3)

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.

Jan Adelsbach <jan@jadelsbach.de>

March 30, 2025 Linux 6.13.6-1-default