Merge tag 'block-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / build / feature / test-pthread-barrier.c
blob0558d9334d971be555aab202df534ef5c5afdf15
1 // SPDX-License-Identifier: GPL-2.0
2 #include <stdint.h>
3 #include <pthread.h>
5 int main(void)
7 pthread_barrier_t barrier;
9 pthread_barrier_init(&barrier, NULL, 1);
10 pthread_barrier_wait(&barrier);
11 return pthread_barrier_destroy(&barrier);