diff options
| author | Ted Ross <tross@apache.org> | 2010-02-12 18:23:47 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-02-12 18:23:47 +0000 |
| commit | 6febb06e1476898cd18d59cc0edf212af3d1efb8 (patch) | |
| tree | 0bd8fc28bd9f4da06f5a375b72c1368609d91ad7 /qpid/cpp/src/qmf/engine | |
| parent | e088dfec2102b19d1c1e411a15f66f92dcceb9b7 (diff) | |
| download | qpid-python-6febb06e1476898cd18d59cc0edf212af3d1efb8.tar.gz | |
QPID-2328 - Applied patch from Ian Main
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@909548 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qmf/engine')
| -rw-r--r-- | qpid/cpp/src/qmf/engine/ResilientConnection.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/qpid/cpp/src/qmf/engine/ResilientConnection.cpp b/qpid/cpp/src/qmf/engine/ResilientConnection.cpp index 9c19e4d460..ab65b8d768 100644 --- a/qpid/cpp/src/qmf/engine/ResilientConnection.cpp +++ b/qpid/cpp/src/qmf/engine/ResilientConnection.cpp @@ -96,6 +96,7 @@ namespace engine { void bind(SessionHandle handle, char* exchange, char* queue, char* key); void unbind(SessionHandle handle, char* exchange, char* queue, char* key); void setNotifyFd(int fd); + void notify(); void run(); void failure(); @@ -329,6 +330,16 @@ void ResilientConnectionImpl::unbind(SessionHandle handle, sess->session.exchangeUnbind(client::arg::exchange=exchange, client::arg::queue=queue, client::arg::bindingKey=key); } +void ResilientConnectionImpl::notify() +{ + if (notifyFd != -1) + { + int unused_ret; //Suppress warnings about ignoring return value. + unused_ret = ::write(notifyFd, ".", 1); + } +} + + void ResilientConnectionImpl::setNotifyFd(int fd) { notifyFd = fd; @@ -496,3 +507,8 @@ void ResilientConnection::setNotifyFd(int fd) impl->setNotifyFd(fd); } +void ResilientConnection::notify() +{ + impl->notify(); +} + |
