diff options
| author | Alan Conway <aconway@apache.org> | 2008-08-11 18:41:42 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-08-11 18:41:42 +0000 |
| commit | ebed79208a920e4986611e4b31f97921dbc93945 (patch) | |
| tree | 6514a1f06a02e03a9b81a718e09012800c28c707 /cpp/src/qpid/broker | |
| parent | 5c2e3052815e76e7565038f771cdb235e0516816 (diff) | |
| download | qpid-python-ebed79208a920e4986611e4b31f97921dbc93945.tar.gz | |
Integrate CPG file descriptor into broker polling.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@684865 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker')
| -rw-r--r-- | cpp/src/qpid/broker/Broker.cpp | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/broker/Broker.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Broker.cpp b/cpp/src/qpid/broker/Broker.cpp index c7250d354c..4d7c07649b 100644 --- a/cpp/src/qpid/broker/Broker.cpp +++ b/cpp/src/qpid/broker/Broker.cpp @@ -395,5 +395,7 @@ void Broker::connect( connect(addr.host, addr.port, false, failed, f); } +boost::shared_ptr<sys::Poller> Broker::getPoller() { return poller; } + }} // namespace qpid::broker diff --git a/cpp/src/qpid/broker/Broker.h b/cpp/src/qpid/broker/Broker.h index b5f5aca8ba..f7399c375f 100644 --- a/cpp/src/qpid/broker/Broker.h +++ b/cpp/src/qpid/broker/Broker.h @@ -177,6 +177,8 @@ class Broker : public sys::Runnable, public Plugin::Target, // For the present just return the first ProtocolFactory registered. boost::shared_ptr<sys::ProtocolFactory> getProtocolFactory() const; + /** Expose poller so plugins can register their descriptors. */ + boost::shared_ptr<sys::Poller> getPoller(); }; }} |
