THRIFT-469. cpp: Fix a bug in TimerManager::add
authorDavid Reiss <dreiss@apache.org>
Thu, 4 Jun 2009 00:32:57 +0000 (00:32 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 4 Jun 2009 00:32:57 +0000 (00:32 +0000)
commit52687eb3b9aa8982cab5e11fae2ae879c6bc1b69
tree7b19bd2e1e4a3eadbc379f9a0d4b4b79b1997123
parent9fcacc8ff6e856bd55929763b5026181413806f1
THRIFT-469. cpp: Fix a bug in TimerManager::add

The old code didn't notify waiters when the inserted task's timeout
was less than the current timeout because it didn't check the task map
to find the lowest timeout until after the new task was inserted.

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