Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 81336 invoked from network); 20 Nov 2009 21:04:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Nov 2009 21:04:26 -0000 Received: (qmail 508 invoked by uid 500); 20 Nov 2009 21:04:26 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 455 invoked by uid 500); 20 Nov 2009 21:04:25 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 446 invoked by uid 99); 20 Nov 2009 21:04:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 21:04:25 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 21:04:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5F366238888E; Fri, 20 Nov 2009 21:04:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r882712 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Thread.cpp Date: Fri, 20 Nov 2009 21:04:03 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091120210403.5F366238888E@eris.apache.org> 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; }