summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/LinkRegistry.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-07-30 14:06:55 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-07-30 14:06:55 +0000
commit8cba19c48210f14a36b92046005914036201be47 (patch)
treead13a3512b6f4d4f9ec9036001c2116f60d4902f /cpp/src/qpid/broker/LinkRegistry.cpp
parent9c095c4cd694287151cc1fabcc274fd435944dee (diff)
downloadqpid-python-8cba19c48210f14a36b92046005914036201be47.tar.gz
Change remaining broker Timer clients to use the single broker Timer
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@799274 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/LinkRegistry.cpp')
-rw-r--r--cpp/src/qpid/broker/LinkRegistry.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/qpid/broker/LinkRegistry.cpp b/cpp/src/qpid/broker/LinkRegistry.cpp
index 7ef6ce5301..c70392eb23 100644
--- a/cpp/src/qpid/broker/LinkRegistry.cpp
+++ b/cpp/src/qpid/broker/LinkRegistry.cpp
@@ -41,18 +41,18 @@ namespace _qmf = qmf::org::apache::qpid::broker;
// factored: The persistence element and maintenance element
// should be factored separately
LinkRegistry::LinkRegistry () :
- broker(0),
+ broker(0), timer(0),
parent(0), store(0), passive(false), passiveChanged(false),
realm("")
{
}
LinkRegistry::LinkRegistry (Broker* _broker) :
- broker(_broker),
- parent(0), store(0), passive(false), passiveChanged(false),
+ broker(_broker), timer(&broker->getTimer()),
+ parent(0), store(0), passive(false), passiveChanged(false),
realm(broker->getOptions().realm)
{
- timer.add (new Periodic(*this));
+ timer->add (new Periodic(*this));
}
LinkRegistry::Periodic::Periodic (LinkRegistry& _links) :
@@ -61,7 +61,7 @@ LinkRegistry::Periodic::Periodic (LinkRegistry& _links) :
void LinkRegistry::Periodic::fire ()
{
links.periodicMaintenance ();
- links.timer.add (new Periodic(links));
+ links.timer->add (new Periodic(links));
}
void LinkRegistry::periodicMaintenance ()