activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r882712 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp
Date Fri, 20 Nov 2009 21:04:03 GMT
Author: tabish
Date: Fri Nov 20 21:04:02 2009
New Revision: 882712

URL: http://svn.apache.org/viewvc?rev=882712&view=rev
Log:
Fix a few issues found while testing on Windows

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=882712&r1=882711&r2=882712&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 Fri Nov 20 21:04:02
2009
@@ -82,7 +82,7 @@
             HANDLE handle;
         #endif
 
-        Thread::State state;
+        volatile Thread::State state;
         std::string name;
         int priority;
         bool interrupted;
@@ -185,6 +185,8 @@
             pthread_setspecific( currentThreadKey, NULL );
             pthread_exit(0);
 
+			properties->state = Thread::TERMINATED;
+
             return NULL;
         }
     #else
@@ -208,6 +210,8 @@
 
             ::CloseHandle( properties->handle );
 
+			properties->state = Thread::TERMINATED;
+
             return NULL;
         }
 



Mime
View raw message