Hi Pieter,

> If sockets are not in a critical section, can zmq_term not perform
> single-bit changes safely anyhow?

Right. That would basically mean implementing a spin-lock in the user 
space. zmq_term thread spins while the socket thread is in a 0MQ call. 
When socket thread exits the function, the zmq_term thread sets a 
"terminated" flag and proceeds with flushing the messages from the socket.

The question is whether such a spin-lock would be any faster when 
compared to standard mutex.

Martin
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to