From: Marc Slemko Date: Sun, 1 Apr 2007 20:17:02 +0000 (+0000) Subject: Removed comment about needing a lock in thread main. Access through boost::shared_pt... X-Git-Tag: 0.2.0~1396 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=b6b5a9e001071b781a2bd826770ad56165dc08e4;p=common%2Fthrift.git Removed comment about needing a lock in thread main. Access through boost::shared_ptr is thread safe Reviewed By: none Test Plan: N.A. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665076 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/concurrency/PosixThreadFactory.cpp b/lib/cpp/src/concurrency/PosixThreadFactory.cpp index 972c1c1d..675e95d2 100644 --- a/lib/cpp/src/concurrency/PosixThreadFactory.cpp +++ b/lib/cpp/src/concurrency/PosixThreadFactory.cpp @@ -114,7 +114,6 @@ class PthreadThread: public Thread { }; void* PthreadThread::threadMain(void* arg) { - // XXX need a lock here when testing thread state shared_ptr thread = *(shared_ptr*)arg; delete reinterpret_cast*>(arg);