eina_barrier: handle PTHREAD_BARRIER_SERIAL_THREAD return from barrier_wait

Summary:
this is a valid return code which indicates success and is passed randomly to
one of the callers

@fix
Depends on D6267

Reviewers: stefan_schmidt, ManMower, devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6268
This commit is contained in:
Mike Blumenkrantz 2018-06-13 10:09:43 -04:00
parent bbf60946e3
commit 92a229f6eb
1 changed files with 1 additions and 0 deletions

View File

@ -587,6 +587,7 @@ eina_barrier_wait(Eina_Barrier *barrier)
{
int ok = pthread_barrier_wait(&(barrier->barrier));
if (ok == 0) return EINA_TRUE;
else if (ok == PTHREAD_BARRIER_SERIAL_THREAD) return EINA_TRUE;
else EINA_LOCK_ABORT_DEBUG(ok, barrier_wait, barrier);
return EINA_TRUE;
}