diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2012-12-21 17:04:22 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2012-12-21 17:04:22 +0000 |
| commit | fd54c5f98193aa0a1b2064a13cec094d1be9dfe3 (patch) | |
| tree | 2926d14e08d5527de9525d33d515a47f4834aa2e /cpp/src/qpid/sys/Timer.cpp | |
| parent | 994259f000a0e2b4620493d4988551ce312f9874 (diff) | |
| download | qpid-python-fd54c5f98193aa0a1b2064a13cec094d1be9dfe3.tar.gz | |
NO-JIRA: Removed some unused Timer features (old cluster used to use them)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1425036 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/Timer.cpp')
| -rw-r--r-- | cpp/src/qpid/sys/Timer.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cpp/src/qpid/sys/Timer.cpp b/cpp/src/qpid/sys/Timer.cpp index 6947c787b4..f8eef2c9ec 100644 --- a/cpp/src/qpid/sys/Timer.cpp +++ b/cpp/src/qpid/sys/Timer.cpp @@ -96,6 +96,7 @@ void TimerTask::cancel() { state = CANCELLED; } +// TODO AStitcher 21/08/09 The threshholds for emitting warnings are a little arbitrary Timer::Timer() : active(false), late(50 * TIME_MSEC), @@ -127,7 +128,6 @@ public: } }; -// TODO AStitcher 21/08/09 The threshholds for emitting warnings are a little arbitrary void Timer::run() { Monitor::ScopedLock l(monitor); @@ -145,10 +145,6 @@ void Timer::run() { TimerTaskCallbackScope s(*t); if (s) { - { - Monitor::ScopedUnlock u(monitor); - drop(t); - } if (delay > lateCancel) { QPID_LOG(debug, t->name << " cancelled timer woken up " << delay / TIME_MSEC << "ms late"); @@ -229,9 +225,6 @@ void Timer::fire(boost::intrusive_ptr<TimerTask> t) { } } -// Provided for subclasses: called when a task is droped. -void Timer::drop(boost::intrusive_ptr<TimerTask>) {} - bool operator<(const intrusive_ptr<TimerTask>& a, const intrusive_ptr<TimerTask>& b) { |
