diff options
author | Alan Conway <aconway@apache.org> | 2010-08-26 21:12:54 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-08-26 21:12:54 +0000 |
commit | f32145824299cc519690c700bd5ea8117d4c675b (patch) | |
tree | cf883fe9c82498246e352ecb3a18942429d66083 /cpp/src/qpid/cluster | |
parent | 9c5d0cf2197a7d8901d3cc2793eb630f17d0d3ee (diff) | |
download | qpid-python-f32145824299cc519690c700bd5ea8117d4c675b.tar.gz |
Give timer tasks a name for logging purposes.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@989925 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster')
-rw-r--r-- | cpp/src/qpid/cluster/ExpiryPolicy.cpp | 2 | ||||
-rw-r--r-- | cpp/src/qpid/cluster/WatchDogPlugin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/ExpiryPolicy.cpp b/cpp/src/qpid/cluster/ExpiryPolicy.cpp index 190eeb7293..e1ba420f2a 100644 --- a/cpp/src/qpid/cluster/ExpiryPolicy.cpp +++ b/cpp/src/qpid/cluster/ExpiryPolicy.cpp @@ -35,7 +35,7 @@ ExpiryPolicy::ExpiryPolicy(Multicaster& m, const MemberId& id, sys::Timer& t) struct ExpiryTask : public sys::TimerTask { ExpiryTask(const boost::intrusive_ptr<ExpiryPolicy>& policy, uint64_t id, sys::AbsTime when) - : TimerTask(when), expiryPolicy(policy), expiryId(id) {} + : TimerTask(when,"ExpiryPolicy"), expiryPolicy(policy), expiryId(id) {} void fire() { expiryPolicy->sendExpire(expiryId); } boost::intrusive_ptr<ExpiryPolicy> expiryPolicy; const uint64_t expiryId; diff --git a/cpp/src/qpid/cluster/WatchDogPlugin.cpp b/cpp/src/qpid/cluster/WatchDogPlugin.cpp index 9b19b4f95f..57ba5cf2fd 100644 --- a/cpp/src/qpid/cluster/WatchDogPlugin.cpp +++ b/cpp/src/qpid/cluster/WatchDogPlugin.cpp @@ -76,7 +76,7 @@ struct WatchDogTask : public sys::TimerTask { int interval; WatchDogTask(int pid_, sys::Timer& t, int _interval) - : TimerTask(_interval*sys::TIME_SEC/2), pid(pid_), timer(t), interval(_interval) {} + : TimerTask(_interval*sys::TIME_SEC/2,"WatchDog"), pid(pid_), timer(t), interval(_interval) {} void fire() { timer.add (new WatchDogTask(pid, timer, interval)); |