diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-09 09:24:48 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-09 09:24:48 +0200 |
commit | 5b5b513330e96e3e08d0c2c60d03044091976420 (patch) | |
tree | 1eb97606ff6827760c0b063aca95470df6ae20a1 /src/epoll.cpp | |
parent | a8b410e66c3c75809c8e9c01dd3e35c579f02347 (diff) |
socket options interface modeled as in BSD sockets
Diffstat (limited to 'src/epoll.cpp')
-rw-r--r-- | src/epoll.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/epoll.cpp b/src/epoll.cpp index 15278c6..5f3bc51 100644 --- a/src/epoll.cpp +++ b/src/epoll.cpp @@ -41,10 +41,12 @@ zmq::epoll_t::epoll_t () : zmq::epoll_t::~epoll_t () { + // Wait till the worker thread exits. + worker.stop (); + // Make sure there are no fds registered on shutdown. zmq_assert (load.get () == 0); - worker.stop (); close (epoll_fd); for (retired_t::iterator it = retired.begin (); it != retired.end (); it ++) delete *it; |