From: David Reiss Date: Tue, 2 Dec 2008 02:22:01 +0000 (+0000) Subject: THRIFT-215. cpp: Disable an assertion that fails on various platforms X-Git-Tag: 0.2.0~397 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=428d5695ab6dd8a598b1be5bb29cfb7c90aa9414;p=common%2Fthrift.git 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 --- 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(); } }