diff options
Diffstat (limited to 'iosem.h')
-rw-r--r-- | iosem.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -24,14 +24,7 @@ retry: if (sem->cur > 0) { /* uncontended case is simple */ sem->cur--; } else { - int rc = pthread_cond_wait(&sem->cond, &sem->mtx); - - /* - * POSIX forbids EINTR, but some platforms (old GNU/Linux) - * are buggy - */ - assert((rc == 0 || rc == EINTR) - && "BUG in pthread_cond_wait usage"); + CHECK(int, 0, pthread_cond_wait(&sem->cond, &sem->mtx)); goto retry; } CHECK(int, 0, pthread_mutex_unlock(&sem->mtx)); |