From b6b5a9e001071b781a2bd826770ad56165dc08e4 Mon Sep 17 00:00:00 2001 From: Marc Slemko Date: Sun, 1 Apr 2007 20:17:02 +0000 Subject: [PATCH] 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 --- lib/cpp/src/concurrency/PosixThreadFactory.cpp | 1 - 1 file changed, 1 deletion(-) 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); -- 2.17.1