From 09e7b2f6fa394943a151c79e3b1086834f643497 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 19 Jan 2017 00:13:52 -0800 Subject: Fix synchronization problem in msgqueue with multiple consumers. --- src/platform/posix/posix_thread.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/platform') 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); -- cgit v1.2.3-70-g09d2