summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/Dispatcher.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-01-06 23:42:18 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-01-06 23:42:18 +0000
commit9a933ae9011d343a75929136269fe45c6b863a17 (patch)
tree29ebd71241d810af6e0f20d7e5694cba1607486f /cpp/src/qpid/sys/Dispatcher.cpp
parent820071d5a9959a2923269751ddcff2ed085b239a (diff)
downloadqpid-python-9a933ae9011d343a75929136269fe45c6b863a17.tar.gz
Work on the low level IO code:
* Introduce code so that you can interrupt waiting for a handle and receive a callback that is correctly serialised with the IO callbacks for that handle git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@732177 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/Dispatcher.cpp')
-rw-r--r--cpp/src/qpid/sys/Dispatcher.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/cpp/src/qpid/sys/Dispatcher.cpp b/cpp/src/qpid/sys/Dispatcher.cpp
index 8d1d1b79f5..e8ae6bc2fe 100644
--- a/cpp/src/qpid/sys/Dispatcher.cpp
+++ b/cpp/src/qpid/sys/Dispatcher.cpp
@@ -34,26 +34,7 @@ Dispatcher::~Dispatcher() {
}
void Dispatcher::run() {
- do {
- Poller::Event event = poller->wait();
-
- // If can read/write then dispatch appropriate callbacks
- if (event.handle) {
- event.process();
- } else {
- // Handle shutdown
- switch (event.type) {
- case Poller::SHUTDOWN:
- goto dispatcher_shutdown;
- default:
- // This should be impossible
- assert(false);
- }
- }
- } while (true);
-
-dispatcher_shutdown:
- ;
+ poller->run();
}
}}