From 428d5695ab6dd8a598b1be5bb29cfb7c90aa9414 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Tue, 2 Dec 2008 02:22:01 +0000 Subject: [PATCH] THRIFT-215. cpp: Disable an assertion that fails on various platforms git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@722336 13f79535-47bb-0310-9956-ffa450edef68 --- lib/cpp/src/concurrency/Monitor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cpp/src/concurrency/Monitor.cpp b/lib/cpp/src/concurrency/Monitor.cpp index 1c826c80..932ae686 100644 --- a/lib/cpp/src/concurrency/Monitor.cpp +++ b/lib/cpp/src/concurrency/Monitor.cpp @@ -66,7 +66,9 @@ class Monitor::Impl { &pthread_mutex_, &abstime); if (result == ETIMEDOUT) { - assert(Util::currentTime() >= (now + timeout)); + // pthread_cond_timedwait has been observed to return early on + // various platforms, so comment out this assert. + //assert(Util::currentTime() >= (now + timeout)); throw TimedOutException(); } } -- 2.17.1