[zeromq-dev] zmq_poll and fully asynchronous client-server
Paul Colomiets
paul at colomiets.name
Fri Jun 1 21:12:45 CEST 2012
Hi Jigar,
On Fri, Jun 1, 2012 at 3:55 PM, Jigar Gosar <jigar.g at directi.com> wrote:
> * Java's "selector" has a wakeup method, which immediately returns
> the "selector.select(10ms)" blocking call. I need something similar
> so as to be able to achieve the above goal.
>
The exact equivalent to wakeup method is creating a pair of sockets.
One you add to a poll and writing to other one will wake up that poll.
You should use "inproc://" socket for the task, if you want to do that
from another thread.
--
Paul
More information about the zeromq-dev
mailing list