diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-19 00:13:52 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-19 00:13:52 -0800 |
| commit | 09e7b2f6fa394943a151c79e3b1086834f643497 (patch) | |
| tree | 5ac58336678c15a9076fc575fd76024b09f69e6b /src/platform/posix | |
| parent | f2804cec25fa20ec0bf3e37ea99d89d117fce86a (diff) | |
| download | nng-09e7b2f6fa394943a151c79e3b1086834f643497.tar.gz nng-09e7b2f6fa394943a151c79e3b1086834f643497.tar.bz2 nng-09e7b2f6fa394943a151c79e3b1086834f643497.zip | |
Fix synchronization problem in msgqueue with multiple consumers.
Diffstat (limited to 'src/platform/posix')
| -rw-r--r-- | src/platform/posix/posix_thread.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/platform/posix/posix_thread.c b/src/platform/posix/posix_thread.c index 113dd9ea..fddc25da 100644 --- a/src/platform/posix/posix_thread.c +++ b/src/platform/posix/posix_thread.c @@ -146,11 +146,6 @@ nni_plat_cv_until(nni_plat_cv *cv, nni_time until) rv = pthread_cond_timedwait(&cv->cv, cv->mtx, &ts); if (rv == ETIMEDOUT) { - if (nni_clock() < until) { - // Buggy pthreads implementation!! Seen with - // CLOCK_MONOTONIC on macOS Sierra. - nni_panic("nni_plat_cv_until: Premature wake up!"); - } return (NNG_ETIMEDOUT); } else if (rv != 0) { nni_panic("pthread_cond_timedwait: %d", rv); |
