| 372 | |
| 373 | |
| 374 | void Clock::advance(const Duration& duration) |
| 375 | { |
| 376 | synchronized (timers_mutex) { |
| 377 | if (clock::paused) { |
| 378 | *clock::advanced += duration; |
| 379 | *clock::current += duration; |
| 380 | |
| 381 | VLOG(2) << "Clock advanced (" << duration << ") to " << *clock::current; |
| 382 | |
| 383 | // Schedule another "tick" if necessary. Only "ticks" that |
| 384 | // fire immediately will be scheduled here, since the clock |
| 385 | // is paused. |
| 386 | clock::scheduleTick(*timers, clock::ticks); |
| 387 | } |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | |
| 392 | void Clock::advance(ProcessBase* process, const Duration& duration) |
nothing calls this directly
no outgoing calls
no test coverage detected