-- fix memory leak in TThreadedServer
authorAditya Agarwal <aditya@apache.org>
Thu, 2 Aug 2007 06:26:11 +0000 (06:26 +0000)
committerAditya Agarwal <aditya@apache.org>
Thu, 2 Aug 2007 06:26:11 +0000 (06:26 +0000)
Summary:
- need detached=true

Reviewed By: mcslee

Test Plan: replayable test case

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665188 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/concurrency/PosixThreadFactory.h

index 894d5f5..9a9e2af 100644 (file)
@@ -71,7 +71,7 @@ class PosixThreadFactory : public ThreadFactory {
    * By default threads are joinable.
    */
 
-  PosixThreadFactory(POLICY policy=ROUND_ROBIN, PRIORITY priority=NORMAL, int stackSize=1, bool detached=false);
+  PosixThreadFactory(POLICY policy=ROUND_ROBIN, PRIORITY priority=NORMAL, int stackSize=1, bool detached=true);
 
   // From ThreadFactory;
   boost::shared_ptr<Thread> newThread(boost::shared_ptr<Runnable> runnable) const;