activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r818200 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/unix/MutexImpl.cpp
Date Wed, 23 Sep 2009 18:48:31 GMT
Author: tabish
Date: Wed Sep 23 18:48:31 2009
New Revision: 818200

URL: http://svn.apache.org/viewvc?rev=818200&view=rev
Log:
Add fix to the TryLock method.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/unix/MutexImpl.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/unix/MutexImpl.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/unix/MutexImpl.cpp?rev=818200&r1=818199&r2=818200&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/unix/MutexImpl.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/unix/MutexImpl.cpp
Wed Sep 23 18:48:31 2009
@@ -83,7 +83,7 @@
         handle->lock_count++;
     } else {
 
-        if( pthread_mutex_lock( &( handle->mutex ) ) == 0 ) {
+        if( pthread_mutex_trylock( &( handle->mutex ) ) == 0 ) {
             handle->lock_owner = threadId;
             handle->lock_count = 1;
         } else {



Mime
View raw message