| 353 | |
| 354 | |
| 355 | void Clock::resume() |
| 356 | { |
| 357 | process::initialize(); // To make sure the event loop is ready. |
| 358 | |
| 359 | synchronized (timers_mutex) { |
| 360 | if (clock::paused) { |
| 361 | VLOG(2) << "Clock resumed at " << *clock::current; |
| 362 | |
| 363 | clock::paused = false; |
| 364 | clock::settling = false; |
| 365 | clock::currents->clear(); |
| 366 | |
| 367 | // Schedule another "tick" if necessary. |
| 368 | clock::scheduleTick(*timers, clock::ticks); |
| 369 | } |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | |
| 374 | void Clock::advance(const Duration& duration) |
nothing calls this directly
no test coverage detected