mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-15 10:18:01 +08:00
Merge pull request #79 from mika-fischer/workaround-for-496
Work around for LIBZMQ-496
This commit is contained in:
commit
a436d14547
@ -35,6 +35,11 @@ zmq::mailbox_t::mailbox_t ()
|
||||
zmq::mailbox_t::~mailbox_t ()
|
||||
{
|
||||
// TODO: Retrieve and deallocate commands inside the cpipe.
|
||||
|
||||
// Work around problem that other threads might still be in our
|
||||
// send() method, by waiting on the mutex before disappearing.
|
||||
sync.lock ();
|
||||
sync.unlock ();
|
||||
}
|
||||
|
||||
zmq::fd_t zmq::mailbox_t::get_fd ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user