| 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)); |
nothing calls this directly
no outgoing calls
no test coverage detected