| 453 | |
| 454 | |
| 455 | bool 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 |
nothing calls this directly
no outgoing calls
no test coverage detected