zeromq/pyzmq — pull request #260 by minrk (2012-09-15 21:57:36+00:00)
Title: adjust threadsafety decorators

* adds not_threadsafe, for flush, which ensures that they are never called
from outside the main thread
* move the callback boundary to the outer io_state methods, out from
update_io_state, which had a race condition on the socket state.