From 917126bdd9fe2ed27dea1d02868064e58d73bf68 Mon Sep 17 00:00:00 2001 From: Razvan Becheriu Date: Wed, 25 Aug 2021 17:45:24 +0300 Subject: [PATCH] [#2043] updated exception message --- src/lib/util/thread_pool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } -- 2.47.3