summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/posix/EventChannelAcceptor.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2007-06-18 12:11:32 +0000
committerAndrew Stitcher <astitcher@apache.org>2007-06-18 12:11:32 +0000
commit45b526ce09daee869ec1313808583f7e05bff7bb (patch)
tree297d2b1f02b14e1fdffbc1074b3d23670859f602 /cpp/src/qpid/sys/posix/EventChannelAcceptor.cpp
parent41c30308ad435c338633b97405fe7350d515f069 (diff)
downloadqpid-python-45b526ce09daee869ec1313808583f7e05bff7bb.tar.gz
Intermediate checkin with preliminary work on epoll based net IO
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@548337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/posix/EventChannelAcceptor.cpp')
-rw-r--r--cpp/src/qpid/sys/posix/EventChannelAcceptor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/qpid/sys/posix/EventChannelAcceptor.cpp b/cpp/src/qpid/sys/posix/EventChannelAcceptor.cpp
index d5a2c238d9..1a5fceb56e 100644
--- a/cpp/src/qpid/sys/posix/EventChannelAcceptor.cpp
+++ b/cpp/src/qpid/sys/posix/EventChannelAcceptor.cpp
@@ -106,7 +106,7 @@ void EventChannelAcceptor::run(ConnectionInputHandlerFactory* f) {
if (!isRunning && !isShutdown) {
isRunning = true;
factory = f;
- threads->postEvent(acceptEvent);
+ threads->post(acceptEvent);
}
}
threads->join(); // Wait for shutdown.
@@ -120,7 +120,7 @@ void EventChannelAcceptor::shutdown() {
isShutdown = true;
}
if (doShutdown) {
- ::close(acceptEvent.getDescriptor());
+ ::close(acceptEvent.getFDescriptor());
threads->shutdown();
for_each(connections.begin(), connections.end(),
boost::bind(&EventChannelConnection::close, _1));
@@ -139,11 +139,11 @@ void EventChannelAcceptor::accept()
shutdown();
return;
}
- // TODO aconway 2006-11-29: Need to reap closed connections also.
int fd = acceptEvent.getAcceptedDesscriptor();
+ threads->post(acceptEvent); // Keep accepting.
+ // TODO aconway 2006-11-29: Need to reap closed connections also.
connections.push_back(
new EventChannelConnection(threads, *factory, fd, fd, isTrace));
- threads->postEvent(acceptEvent); // Keep accepting.
}
}} // namespace qpid::sys