You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/11/20 22:04:03 UTC
svn commit: r882712 -
/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp
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;
}