MCPcopy Create free account
hub / github.com/cinder/Cinder / get_ready_timers

Method get_ready_timers

include/asio/detail/timer_queue.hpp:145–157  ·  view source on GitHub ↗

Dequeue all timers not later than the current time.

Source from the content-addressed store, hash-verified

143
144 // Dequeue all timers not later than the current time.
145 virtual void get_ready_timers(op_queue<operation>& ops)
146 {
147 if (!heap_.empty())
148 {
149 const time_type now = Time_Traits::now();
150 while (!heap_.empty() && !Time_Traits::less_than(now, heap_[0].time_))
151 {
152 per_timer_data* timer = heap_[0].timer_;
153 ops.push(timer->op_queue_);
154 remove_timer(*timer);
155 }
156 }
157 }
158
159 // Dequeue all timers.
160 virtual void get_all_timers(op_queue<operation>& ops)

Callers

nothing calls this directly

Calls 3

nowClass · 0.85
emptyMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected