From bbe03f51a82881e0c398aff3ea2d6613a984961f Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 5 Dec 2019 13:03:34 +0000 Subject: Äddress review comments. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- staging_vespalib/src/vespa/vespalib/util/scheduledexecutor.h | 2 +- staging_vespalib/src/vespa/vespalib/util/shutdownguard.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'staging_vespalib/src') diff --git a/staging_vespalib/src/vespa/vespalib/util/scheduledexecutor.h b/staging_vespalib/src/vespa/vespalib/util/scheduledexecutor.h index dd12985aeda..d7e56494828 100644 --- a/staging_vespalib/src/vespa/vespalib/util/scheduledexecutor.h +++ b/staging_vespalib/src/vespa/vespalib/util/scheduledexecutor.h @@ -13,7 +13,7 @@ namespace vespalib { class TimerTask; /** - * Timer is a class capable of running Tasks at a regular + * ScheduledExecutor is a class capable of running Tasks at a regular * interval. The timer can be reset to clear all tasks currently being * scheduled. */ diff --git a/staging_vespalib/src/vespa/vespalib/util/shutdownguard.cpp b/staging_vespalib/src/vespa/vespalib/util/shutdownguard.cpp index cf8130f97c1..99857107860 100644 --- a/staging_vespalib/src/vespa/vespalib/util/shutdownguard.cpp +++ b/staging_vespalib/src/vespa/vespalib/util/shutdownguard.cpp @@ -16,7 +16,7 @@ void ShutdownGuard::Run(FastOS_ThreadInterface *, void *) while (_dieAtTime > steady_clock::now() && ! GetThread()->GetBreakFlag()) { std::this_thread::sleep_for(5ms); } - if (_dieAtTime < steady_clock::now()) { + if (_dieAtTime <= steady_clock::now()) { LOG(warning, "ShutdownGuard is now forcing an exit of the process."); _exit(EXIT_FAILURE); } -- cgit v1.2.3