Modified PosixThreadFactory::PThread:
authorMarc Slemko <marc@apache.org>
Mon, 4 Jun 2007 21:01:19 +0000 (21:01 +0000)
committerMarc Slemko <marc@apache.org>
Mon, 4 Jun 2007 21:01:19 +0000 (21:01 +0000)
commit67606e5d7207874d003bc9ba433edd66d74662f0
treee0c1d491867848f528ed6696c5df251f200be635
parent5e707a6cd9aa9c3de9b3eddb83307a8268449f58
Modified PosixThreadFactory::PThread:
        Pay attention to detached flags.  If thread is create non-detached and has not been joined when all references are given up,
        (ie boost::share_ptr calls ~PThread) do the join in the destructor to prevent thread ids from being leaked.

Modified ThreadFactoryTests.reapNThreads:
        Loop M times for M threads where M x N is bigger than 32K to verify that thread ids aren't leaked

Modified TimerManager.cpp:
        Removed debug messages.

Reviewed By: mcslee

Revert Plan: revertible

Test Plan: concurrency_test thread-factory passes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665129 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/concurrency/PosixThreadFactory.cpp
lib/cpp/src/concurrency/PosixThreadFactory.h
lib/cpp/src/concurrency/TimerManager.cpp
lib/cpp/src/concurrency/test/ThreadFactoryTests.h