mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Fix example issue of zmq_timers.adoc
This commit is contained in:
parent
90b4f410a0
commit
60899603a4
@ -136,6 +136,10 @@ _timer_id_ did not exist or was already cancelled.
|
||||
// Wait until the end
|
||||
rc = msleep (zmq_timers_timeout (timers));
|
||||
assert (rc == 0);
|
||||
|
||||
// The handler will be executed
|
||||
rc = zmq_timers_execute (timers);
|
||||
assert (rc == 0);
|
||||
assert (timer_invoked);
|
||||
|
||||
rc = zmq_timers_destroy (&timers);
|
||||
|
Loading…
Reference in New Issue
Block a user