[zeromq-dev] Windows and PGM

Martin Sustrik sustrik at 250bpm.com
Sun Mar 28 08:56:37 CEST 2010

gonzalo diethelm wrote:

> One thing I am doing now is to add an inproc socket to all of the "real
> work" sockets I am using. The separate socket polling thread also polls
> for this inproc socket and reads "commands" from it: pause, continue,
> stop. I am sending a single char (P, C, S) in each case. This could also
> become a standard way of making this loop stop whenever needed.
> Note: pause / continue are useful to me because I must read data from a
> DB and make sure that data has been read before I start processing
> messages. 0MQ's inproc sockets make this thread synchronization easy and
> inexpensive.

Devices are obviously more complex than what we have now... One day 
we'll have to change them to live in 0MQ's I/O thread pool rather than 
in application thread. At that point I can imagine having 
zmq_pause/zmq_resume functions. It'll take some work to get that far though.


More information about the zeromq-dev mailing list