MCPcopy Create free account
hub / github.com/3rdparty/libprocess / foreachkey

Function foreachkey

src/clock.cpp:154–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 VLOG(3) << "Handling timers up to " << now;
153
154 foreachkey (const Time& timeout, *timers) {
155 if (timeout > now) {
156 break;
157 }
158
159 VLOG(3) << "Have timeout(s) at " << timeout;
160
161 // Need to toggle 'settling' so that we don't prematurely say
162 // we're settled until after the timers are executed below,
163 // outside of the critical section.
164 if (clock::paused) {
165 clock::settling = true;
166 }
167
168 timedout.splice(timedout.end(), (*timers)[timeout]);
169 }
170
171 // Now erase the range of timers that timed out.
172 timers->erase(timers->begin(), timers->upper_bound(now));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected