Fixed issue LIBZMQ-345 - race condition in ctx.socket/term allows segfault

This commit is contained in:
Pieter Hintjens
2012-03-22 11:03:32 -05:00
parent 3b483a8dd7
commit 75809b27da
2 changed files with 4 additions and 7 deletions

View File

@@ -126,7 +126,7 @@ namespace zmq
// Synchronisation of accesses to global slot-related data:
// sockets, empty_slots, terminating. It also synchronises
// access to zombie sockets as such (as oposed to slots) and provides
// access to zombie sockets as such (as opposed to slots) and provides
// a memory barrier to ensure that all CPU cores see the same data.
mutex_t slot_sync;