blob: fc87b1978af01ebafc086f9c139aef434613cad0 [file] [log] [blame]
barte8d005c2008-06-29 07:20:00 +00001/** Trigger barrier reinitialization, which is not allowed by the POSIX
2 * threads standard. See also http://www.opengroup.org/onlinepubs/000095399/functions/pthread_barrier_init.html.
3 */
4
5
6#define _GNU_SOURCE
7
bartd9e39ec2008-06-28 15:03:26 +00008#include <pthread.h>
9
barte8d005c2008-06-29 07:20:00 +000010
bartd9e39ec2008-06-28 15:03:26 +000011int main(int argc, char** argv)
12{
13 pthread_barrier_t b;
14 pthread_barrier_init(&b, 0, 1);
15 pthread_barrier_init(&b, 0, 1);
16 return 0;
17}