From 80cdca7344fba98dcda6bcc694a1419cb2dc60a6 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Thu, 2 Aug 2007 06:26:11 +0000 Subject: [PATCH] -- fix memory leak in TThreadedServer 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cpp/src/concurrency/PosixThreadFactory.h b/lib/cpp/src/concurrency/PosixThreadFactory.h index 894d5f5c..9a9e2afc 100644 --- a/lib/cpp/src/concurrency/PosixThreadFactory.h +++ b/lib/cpp/src/concurrency/PosixThreadFactory.h @@ -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 newThread(boost::shared_ptr runnable) const; -- 2.17.1