]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2043] updated exception message
authorRazvan Becheriu <razvan@isc.org>
Wed, 25 Aug 2021 14:45:24 +0000 (17:45 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 25 Aug 2021 14:45:24 +0000 (17:45 +0300)
src/lib/util/thread_pool.h

index 6416d6b23370ab1196c073e3c02273920cf3d35c..fdfce0f71bb3538a1acebfe620548243d79a841d 100644 (file)
@@ -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));
     }