commit | b6b5a9e001071b781a2bd826770ad56165dc08e4 | [log] [tgz] |
---|---|---|
author | Marc Slemko <marc@apache.org> | Sun Apr 01 20:17:02 2007 +0000 |
committer | Marc Slemko <marc@apache.org> | Sun Apr 01 20:17:02 2007 +0000 |
tree | 7b817341a512a2814e4cda0f0687e39875e310f7 | |
parent | 10b3bdbb853519b922a0b18ca9f384167b82d035 [diff] |
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 972c1c1..675e95d 100644 --- a/lib/cpp/src/concurrency/PosixThreadFactory.cpp +++ b/lib/cpp/src/concurrency/PosixThreadFactory.cpp
@@ -114,7 +114,6 @@ }; void* PthreadThread::threadMain(void* arg) { - // XXX need a lock here when testing thread state shared_ptr<PthreadThread> thread = *(shared_ptr<PthreadThread>*)arg; delete reinterpret_cast<shared_ptr<PthreadThread>*>(arg);