You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2011/05/20 00:52:29 UTC

svn commit: r1125160 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/LockSupport.cpp

Author: tabish
Date: Thu May 19 22:52:29 2011
New Revision: 1125160

URL: http://svn.apache.org/viewvc?rev=1125160&view=rev
Log:
Fix zero timeout lock in parkUntil.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/LockSupport.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/LockSupport.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/LockSupport.cpp?rev=1125160&r1=1125159&r2=1125160&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/LockSupport.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/LockSupport.cpp Thu May 19 22:52:29 2011
@@ -78,7 +78,7 @@ void LockSupport::parkUntil( long long d
 
         long long now = System::currentTimeMillis();
 
-        if( deadline < now ) {
+        if( deadline <= now ) {
             return;
         }