More bullet proofing of timer manager
authorMarc Slemko <marc@apache.org>
Wed, 19 Jul 2006 20:02:22 +0000 (20:02 +0000)
committerMarc Slemko <marc@apache.org>
Wed, 19 Jul 2006 20:02:22 +0000 (20:02 +0000)
commit9f27a4eb7d329f80a7143b1850655f1c59bf4f46
tree1eb2aa81bd253f9aa9a199de7dc1833bad4b54d1
parent8a40a76b271f376a45202d1569d819d12f3940cd
More bullet proofing of timer manager

facebook::thrift::concurrency::TimerManager::stop
Added proper cleanup of unprocessed tasks and shutdown of dispatcher thread to stop

facebook::thrift::concurrency::TimerManager::~TimerManager
Call stop if manager wasn't explicitly stopped

facebook::thrift::concurrency::test.TimerManagerTest
Calculate error margin for timeout expiration and verify it's within bounds
Verify manager stops properly when it goes out of scope

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664724 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/concurrency/Monitor.cc
lib/cpp/src/concurrency/TimerManager.cc
lib/cpp/src/concurrency/Util.h
lib/cpp/src/concurrency/test/TimerManagerTests.h