javacommons/utils/src/monitor.cpp
changeset 23 98ccebc37403
parent 21 2a9601315dfc
--- a/javacommons/utils/src/monitor.cpp	Mon May 03 12:27:20 2010 +0300
+++ b/javacommons/utils/src/monitor.cpp	Fri May 14 15:47:24 2010 +0300
@@ -97,7 +97,7 @@
                 currentTimeVal.tv_usec * 1000 + (timeOut % 1000) * 1000 * 1000;
 
             int err = pthread_cond_timedwait(&mCondVar, &mMutex, &timeOutTime);
-            if (err != ETIMEDOUT)
+            if (err != 0 && err != ETIMEDOUT)
             {
                 ELOG1(EUtils, "Monitor: Timed wait failed, err = %d", err);
             }