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

Method advance

src/clock.cpp:374–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373
374void 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
392void Clock::advance(ProcessBase* process, const Duration& duration)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected