aboutsummaryrefslogblamecommitdiffstats
path: root/barrierwait.c
blob: a310a273a57da1584f6d2a3bd50c0b0da0c8defd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                         
/* See LICENSE file for copyright and license details. */
#include "common.h"


void
barrierwait(pthread_barrier_t *barrier)
{
#ifndef SINGLE_THREADED
	int r = pthread_barrier_wait(barrier);
	if (r && r != PTHREAD_BARRIER_SERIAL_THREAD) {
		errno = r;
		eprintf("pthread_barrier_wait:");
	}
#else
	(void) barrier;
#endif
}