mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-23 23:16:41 +01:00
Merge pull request #533 from mika-fischer/workaround-for-496
Work around for LIBZMQ-496
This commit is contained in:
commit
39214b3e40
@ -33,6 +33,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