Re: [Factor-talk] ZeroMQ

2018-01-06 Thread Alexander Ilin
Hello! 07.01.2018, 02:52, "Chris Double" : > On Sun, Jan 7, 2018 at 10:20 AM, Doug Coleman wrote: >>  You are right. You would have to use the zeromq nonblocking api, if it >> exists. > > There's zmq_poll which you could spawn in a factor thread and run with > a low timeout to check if any zmq e

Re: [Factor-talk] ZeroMQ

2018-01-06 Thread Chris Double
On Sun, Jan 7, 2018 at 10:20 AM, Doug Coleman wrote: > You are right. You would have to use the zeromq nonblocking api, if it exists. There's zmq_poll which you could spawn in a factor thread and run with a low timeout to check if any zmq events are occurring: http://api.zeromq.org/2-1:zmq-poll

Re: [Factor-talk] ZeroMQ

2018-01-06 Thread Doug Coleman
You are right. You would have to use the zeromq nonblocking api, if it exists. Sent from my iPhone > On Jan 6, 2018, at 15:08, Alexander Ilin wrote: > > Hello! > > Is it possible to use the `zeromq` vocab with Factor's green threads, i.e. > the way our asynchronous IO works? > > It seems t

[Factor-talk] ZeroMQ

2018-01-06 Thread Alexander Ilin
Hello! Is it possible to use the `zeromq` vocab with Factor's green threads, i.e. the way our asynchronous IO works? It seems that if I call `zmq_recvmsg` and there is nothing in the pipe, the entire Factor process would block, not only the green thread that made the call. Am I right? ---