activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r903790 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent: Semaphore.cpp locks/ReentrantLock.cpp
Date Wed, 27 Jan 2010 19:40:45 GMT
Author: tabish
Date: Wed Jan 27 19:40:45 2010
New Revision: 903790

URL: http://svn.apache.org/viewvc?rev=903790&view=rev
Log:
Fix some compiler warnings.

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

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/Semaphore.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/Semaphore.cpp?rev=903790&r1=903789&r2=903790&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/Semaphore.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/Semaphore.cpp
Wed Jan 27 19:40:45 2010
@@ -82,7 +82,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool Semaphore::tryAcquire( long long timeout, const TimeUnit& unit )
+bool Semaphore::tryAcquire( long long timeout DECAF_UNUSED, const TimeUnit& unit DECAF_UNUSED
)
     throw( decaf::lang::exceptions::InterruptedException,
            decaf::lang::exceptions::RuntimeException ) {
 
@@ -95,21 +95,21 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Semaphore::acquire( int permits ) throw( decaf::lang::exceptions::InterruptedException,
-                                              decaf::lang::exceptions::IllegalArgumentException,
-                                              decaf::lang::exceptions::RuntimeException )
{
+void Semaphore::acquire( int permits DECAF_UNUSED ) throw( decaf::lang::exceptions::InterruptedException,
+                                                           decaf::lang::exceptions::IllegalArgumentException,
+                                                           decaf::lang::exceptions::RuntimeException
) {
 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Semaphore::acquireUninterruptibly( int permits )
+void Semaphore::acquireUninterruptibly( int permits DECAF_UNUSED )
     throw( decaf::lang::exceptions::IllegalArgumentException,
            decaf::lang::exceptions::RuntimeException ) {
 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool Semaphore::tryAcquire( int permits )
+bool Semaphore::tryAcquire( int permits DECAF_UNUSED )
     throw( decaf::lang::exceptions::IllegalArgumentException,
            decaf::lang::exceptions::RuntimeException ) {
 
@@ -117,7 +117,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool Semaphore::tryAcquire( int permits, long long timeout, const TimeUnit& unit )
+bool Semaphore::tryAcquire( int permits DECAF_UNUSED, long long timeout DECAF_UNUSED, const
TimeUnit& unit DECAF_UNUSED )
     throw( decaf::lang::exceptions::IllegalArgumentException,
            decaf::lang::exceptions::RuntimeException ) {
 
@@ -125,7 +125,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Semaphore::release( int permits )
+void Semaphore::release( int permits DECAF_UNUSED )
     throw( decaf::lang::exceptions::IllegalArgumentException,
            decaf::lang::exceptions::RuntimeException ) {
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/ReentrantLock.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/ReentrantLock.cpp?rev=903790&r1=903789&r2=903790&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/ReentrantLock.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/ReentrantLock.cpp
Wed Jan 27 19:40:45 2010
@@ -299,7 +299,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool ReentrantLock::tryLock( long long time, const TimeUnit& unit )
+bool ReentrantLock::tryLock( long long time DECAF_UNUSED, const TimeUnit& unit DECAF_UNUSED
)
     throw ( decaf::lang::exceptions::RuntimeException,
             decaf::lang::exceptions::InterruptedException ) {
 
@@ -502,7 +502,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool ConditionObject::await( long long time, const TimeUnit& unit )
+bool ConditionObject::await( long long time DECAF_UNUSED, const TimeUnit& unit DECAF_UNUSED
)
     throw( decaf::lang::exceptions::RuntimeException,
            decaf::lang::exceptions::InterruptedException,
            decaf::lang::exceptions::IllegalMonitorStateException ) {
@@ -511,7 +511,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool ConditionObject::awaitUntil( const Date& deadline )
+bool ConditionObject::awaitUntil( const Date& deadline DECAF_UNUSED )
     throw( decaf::lang::exceptions::RuntimeException,
            decaf::lang::exceptions::InterruptedException,
            decaf::lang::exceptions::IllegalMonitorStateException ) {



Mime
View raw message