summaryrefslogtreecommitdiff
path: root/src/kqueue.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-08-06 12:51:32 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-08-06 12:51:32 +0200
commit0b5cc026fbe7ccc6de66907be29471562a2d344d (patch)
treea6051f238152e2261ea48942f0c216a3984cc9fd /src/kqueue.cpp
parentb8b4acef4c2ba1a169ce84c1fb4c70a5676ebba3 (diff)
clean up - session/socket/engine stuff removed
Diffstat (limited to 'src/kqueue.cpp')
-rw-r--r--src/kqueue.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/kqueue.cpp b/src/kqueue.cpp
index 28c15de..f4c58a3 100644
--- a/src/kqueue.cpp
+++ b/src/kqueue.cpp
@@ -42,6 +42,10 @@ zmq::kqueue_t::kqueue_t ()
zmq::kqueue_t::~kqueue_t ()
{
+ // Make sure there are no fds registered on shutdown.
+ zmq_assert (load.get () == 0);
+
+ worker.stop ();
close (kqueue_fd);
}
@@ -144,11 +148,6 @@ void zmq::kqueue_t::stop ()
stopping = true;
}
-void zmq::kqueue_t::join ()
-{
- worker.stop ();
-}
-
void zmq::kqueue_t::loop ()
{
while (!stopping) {