zeromq/zeromq3-x — pull request #79 by mika-fischer (2013-03-18 08:51:53+00:00)
Title: Work around for LIBZMQ-496

The problem is that other threads might still be in mailbox::send() when
it is destroyed. So as a workaround, we just acquire the mutex in the
destructor. Therefore the running send will finish before the mailbox is
destroyed.

See also the fix for LIBZMQ-281 in zeromq2-x.

Signed-off-by: Mika Fischer