0
0
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:
Martin Sustrik 2010-09-27 09:34:00 +02:00
parent 238640a526
commit 30c1cba4e4

View File

@ -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 ();