diff options
| author | Alan Conway <aconway@apache.org> | 2007-12-06 18:22:17 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-12-06 18:22:17 +0000 |
| commit | 430e644a4a647c256ae51682d7230c35d954073e (patch) | |
| tree | ef03ef6d4f1e1d7451bf26b943a325e425ef2b58 /cpp/src/qpid/management | |
| parent | 8a3e8a01188a500401196601d78ecf146ab8ba66 (diff) | |
| download | qpid-python-430e644a4a647c256ae51682d7230c35d954073e.tar.gz | |
Removed redundant TimerA, use intrusive_ptr for Timer.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601803 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/management')
| -rw-r--r-- | cpp/src/qpid/management/ManagementAgent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/management/ManagementAgent.cpp b/cpp/src/qpid/management/ManagementAgent.cpp index fa51a6b82a..85c2acce1d 100644 --- a/cpp/src/qpid/management/ManagementAgent.cpp +++ b/cpp/src/qpid/management/ManagementAgent.cpp @@ -36,7 +36,7 @@ ManagementAgent::shared_ptr ManagementAgent::agent; ManagementAgent::ManagementAgent (uint16_t _interval) : interval (_interval) { - timer.add (TimerTask::shared_ptr (new Periodic(*this, interval))); + timer.add (intrusive_ptr<TimerTask> (new Periodic(*this, interval))); nextObjectId = uint64_t (qpid::sys::Duration (qpid::sys::now ())); } @@ -68,7 +68,7 @@ ManagementAgent::Periodic::Periodic (ManagementAgent& _agent, uint32_t _seconds) void ManagementAgent::Periodic::fire () { - agent.timer.add (TimerTask::shared_ptr (new Periodic (agent, agent.interval))); + agent.timer.add (intrusive_ptr<TimerTask> (new Periodic (agent, agent.interval))); agent.PeriodicProcessing (); } |
