> > Sorry if this is ignorant, but timeouts don't have to be precise.
> > Everybody uses them in a rough way anyway (I think).
>
> The point is that the function returns on random 0MQ internal event.
So
> for example may set the timeout to 1 hour, but event occurs in 1
second
> and zmq_poll exits.
Isn't this related to spurious wake-ups? The usual way to handle these
is by having an explicit loop in user code:
while (1) {
ret = zmq_blah();
if (ret != error) {
do_stuff();
break;
}
}
In fact, for things such as pthreads condition variables, you HAVE to do
it this way.
--
Gonzalo Diethelm
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev