More test code added...
authorMarc Slemko <marc@apache.org>
Thu, 20 Jul 2006 21:16:27 +0000 (21:16 +0000)
committerMarc Slemko <marc@apache.org>
Thu, 20 Jul 2006 21:16:27 +0000 (21:16 +0000)
commitfe5ba12e4a014935defac0464def9ad1986ad572
tree6a54f5adaa4b1249bb81b653874bbaac895667d5
parent03dedd9bd5125358d6fb21cff1b059cfe53fc984
More test code added...
     more bugs found

facebook::thrift::concurrency::ThreadManager::add
Fixed dispatch error that resulted in only one of N worker threads ever getting notified of work

facebook::thrift::concurrency::ThreadManager
Cleaned up addWorker/removeWorker and stop logic so that adding/removing workers doesn't wake up
all blocked workers.

facebook::thrift::concurrency::Thread
facebook::thrift::concurrency::Runnable
Fixed initialization logic so that runnable can return the thread that runs it

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664729 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/concurrency/PosixThreadFactory.cc
lib/cpp/src/concurrency/Thread.h
lib/cpp/src/concurrency/ThreadManager.cc
lib/cpp/src/concurrency/ThreadManager.h
lib/cpp/src/concurrency/test/Tests.cc
lib/cpp/src/concurrency/test/ThreadManagerTests.h