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

Method settled

src/clock.cpp:455–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453
454
455bool Clock::settled()
456{
457 synchronized (timers_mutex) {
458 CHECK(clock::paused);
459
460 if (clock::settling) {
461 VLOG(3) << "Clock still not settled";
462 return false;
463 } else if (timers->size() == 0 ||
464 timers->begin()->first > *clock::current) {
465 VLOG(3) << "Clock is settled";
466 return true;
467 }
468
469 VLOG(3) << "Clock is not settled";
470 return false;
471 }
472
473 UNREACHABLE();
474}
475
476
477// TODO(benh): Introduce a Clock::time(seconds) that replaces this

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected