wIt is not level triggered by himself, only together with zmq_poll. pollfd is like socket fd which is edge.
However we can still do it, it will be a little complicate. We need to reset the pollfd immediately after calling zmq_poll. This will be edge triggered, to make it level we have to check all events before calling zmq_poll again. we can have a method that do this, so binding can implement manually or use something like: zmq_pollfd_poll (void *p, zmq_poll_item *items, int *nitems, long timeout); On Mon, Aug 17, 2015 at 4:16 PM, KIU Shueng Chuan <[email protected]> wrote: > If the pollfd is level triggered, then we could just use the system > poll/select directly. Then check all thread safe zsocks attached to the > pollfd for ZMQ_EVENTS. > > It would thus be trivial to use thread safe zsocks with other event loops. > If pollfd is level triggered, that is. > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
