SG_BARRIER_SERIAL_THREAD ?
pthread_barrier_wait returns PTHREAD_BARRIER_SERIAL_THREAD (-1) to one of the threads of the barrier. s4u does return -1 in that case too, but it'd be useful to #define something to this special value.
pthread_barrier_wait returns PTHREAD_BARRIER_SERIAL_THREAD (-1) to one of the threads of the barrier. s4u does return -1 in that case too, but it'd be useful to #define something to this special value.