[zeromq-dev] Thread-safe sockets (cont.)
ph at imatix.com
Fri Feb 17 00:16:31 CET 2012
On Thu, Feb 16, 2012 at 5:12 PM, Luca Fascione <lukes at wetafx.co.nz> wrote:
> I don't know that it is a good idea to marry 0mq to a threading library
> (even if it is a platform foundation like pthreads), as this might make
> adoption hard for folks that need to in other threading environments,
> such as TBB or openmp, for example.
> After thinking about it, I believe a much more germane place for it
> would be in the language binding libs such as czmq. I other words I
> think that thread safety is an application level concern.
> Also, if my app is using already libzmq in a thread safe way, why should
> I pay for all this locking and unlocking?
You don't pay anything, except that the API is a little more complex.
The real question is whether the functionality is accurate and profitable.
More information about the zeromq-dev