From: Razvan Becheriu Date: Wed, 25 Aug 2021 14:45:24 +0000 (+0300) Subject: [#2043] updated exception message X-Git-Tag: Kea-1.9.11~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=917126bdd9fe2ed27dea1d02868064e58d73bf68;p=thirdparty%2Fkea.git [#2043] updated exception message --- diff --git a/src/lib/util/thread_pool.h b/src/lib/util/thread_pool.h index 6416d6b233..fdfce0f71b 100644 --- a/src/lib/util/thread_pool.h +++ b/src/lib/util/thread_pool.h @@ -120,7 +120,7 @@ struct ThreadPool { void wait() { auto id = std::this_thread::get_id(); if (checkThreadId(id)) { - isc_throw(MultiThreadingInvalidOperation, "thread pool stop called by worker thread"); + isc_throw(MultiThreadingInvalidOperation, "thread pool wait called by worker thread"); } queue_.wait(); } @@ -135,7 +135,7 @@ struct ThreadPool { bool wait(uint32_t seconds) { auto id = std::this_thread::get_id(); if (checkThreadId(id)) { - isc_throw(MultiThreadingInvalidOperation, "thread pool stop called by worker thread"); + isc_throw(MultiThreadingInvalidOperation, "thread pool wait with timeout called by worker thread"); } return (queue_.wait(seconds)); }