mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-31 01:43:02 +08:00
latency optimisation for the case where there are no timers
This commit is contained in:
parent
238640a526
commit
30c1cba4e4
@ -66,6 +66,10 @@ void zmq::poller_base_t::cancel_timer (i_poll_events *sink_, int id_)
|
||||
|
||||
uint64_t zmq::poller_base_t::execute_timers ()
|
||||
{
|
||||
// Fast track.
|
||||
if (timers.empty ())
|
||||
return 0;
|
||||
|
||||
// Get the current time.
|
||||
uint64_t current = clock.now_ms ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user