0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 06:41:03 +08:00

Fix example issue of zmq_timers.adoc

This commit is contained in:
githejie 2024-11-22 14:29:36 +08:00 committed by Luca Boccassi
parent 90b4f410a0
commit 60899603a4

View File

@ -136,6 +136,10 @@ _timer_id_ did not exist or was already cancelled.
// Wait until the end // Wait until the end
rc = msleep (zmq_timers_timeout (timers)); rc = msleep (zmq_timers_timeout (timers));
assert (rc == 0); assert (rc == 0);
// The handler will be executed
rc = zmq_timers_execute (timers);
assert (rc == 0);
assert (timer_invoked); assert (timer_invoked);
rc = zmq_timers_destroy (&timers); rc = zmq_timers_destroy (&timers);