activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1125160 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/LockSupport.cpp
Date Thu, 19 May 2011 22:52:29 GMT
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;
         }
 



Mime
View raw message