activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r825257 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp
Date Wed, 14 Oct 2009 20:12:17 GMT
Author: tabish
Date: Wed Oct 14 20:12:17 2009
New Revision: 825257

URL: http://svn.apache.org/viewvc?rev=825257&view=rev
Log:
Implements timed joins for all platforms.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp?rev=825257&r1=825256&r2=825257&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp Wed Oct 14 20:12:17
2009
@@ -433,26 +433,6 @@
 
         this->properties->mutex.wait( millisecs, nanos );
     }
-
-//    #ifdef HAVE_PTHREAD_H
-//
-//        void* theReturn = NULL;
-//
-//        // TODO - Still need a way to do this if the non-posix method doesn't exist.
-//        #if HAVE_PTHREAD_TIMEDJOIN_NP
-//
-//            long long totalTime = TimeUnit::MILLISECONDS.toNanos( millisecs ) + nanos;
-//
-//            timespec time;
-//            time.tv_nsec = totalTime % 1000000000;
-//            time.tv_sec = totalTime / 1000000000;
-//
-//            pthread_timedjoin_np( properties->handle, &theReturn, &time );
-//
-//        #endif
-//    #else
-//        unsigned int rv = WaitForSingleObject( properties->handle, (DWORD)millisecs
);
-//    #endif
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message