[zeromq-dev] Whcih API calls are thread safe ?

Marten Feldtmann itlists at schrievkrom.de
Sun Jan 22 09:28:20 CET 2012


I would like to know, which APi calls can be used by different threads ?

I assume, that ALL socket oriented calls MUST be called from the thread, 
which created the socket. Is this also true with the API call to close 
the socket ?

The reason for my question is, that my binding to VASmalltalk uses 
several external threads - which allows me to have ZMQ running in my 
development image doing its work and I can change my domain code on the 
fly while my application is running.

Therefore I have a mixture of synchronous API call (all is blocked) and 
asynchronous API call (by using an external thread) and I want to make 
sure, that I have found all API call, which MUST be called from the same 
thread.


Marten




More information about the zeromq-dev mailing list