diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-06-20 01:22:19 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-06-20 01:22:19 +0000 |
commit | 91cb86eb03d828bda8a4ac9cd0c3edbac73418af (patch) | |
tree | a5093a81fd873d0a92f3683fd02abd563ff28013 | |
parent | a2bd4ba9625675600152b86d41c1ae9a0ca6b9b6 (diff) | |
download | cmogstored-91cb86eb03d828bda8a4ac9cd0c3edbac73418af.tar.gz |
pthread_cond_timedwait was the function which was buggy under LinuxThreads, and we never supported LinuxThreads anyways...
-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)); |