Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
840e752
)
THRIFT-464. cpp: Fix some STL misuse in the concurrency library
author
David Reiss
<dreiss@apache.org>
Thu, 4 Jun 2009 00:32:47 +0000
(
00:32
+0000)
committer
David Reiss
<dreiss@apache.org>
Thu, 4 Jun 2009 00:32:47 +0000
(
00:32
+0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@781627
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/concurrency/TimerManager.cpp
patch
|
blob
|
history
diff --git
a/lib/cpp/src/concurrency/TimerManager.cpp
b/lib/cpp/src/concurrency/TimerManager.cpp
index
861a62f
..
003e315
100644
(file)
--- a/
lib/cpp/src/concurrency/TimerManager.cpp
+++ b/
lib/cpp/src/concurrency/TimerManager.cpp
@@
-208,9
+208,7
@@
void TimerManager::stop() {
if (doStop) {
// Clean up any outstanding tasks
- for (task_iterator ix = taskMap_.begin(); ix != taskMap_.end(); ix++) {
- taskMap_.erase(ix);
- }
+ taskMap_.clear();
// Remove dispatcher's reference to us.
dispatcher_->manager_ = NULL;