From eeb760282112428208ee48033947e8733e09c4bb Mon Sep 17 00:00:00 2001 From: niansa Date: Sat, 24 Jun 2023 16:27:11 +0200 Subject: [PATCH] Moved pooled_thread into the right namespace --- include/commoncpp/pooled_thread.hpp | 6 +++++- pooled_thread.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/commoncpp/pooled_thread.hpp b/include/commoncpp/pooled_thread.hpp index b657d7a..9000e05 100644 --- a/include/commoncpp/pooled_thread.hpp +++ b/include/commoncpp/pooled_thread.hpp @@ -8,7 +8,7 @@ -namespace commoncpp { +namespace common { // This thread could be part of a thread pool class PooledThread { using QueueEntry = std::function; @@ -59,4 +59,8 @@ public: } }; } + +namespace [[deprecated("Use the common namespace instead of commoncpp")]] commoncpp { +using namespace common; +} #endif // SCHEDULED_THREAD_HPP diff --git a/pooled_thread.cpp b/pooled_thread.cpp index 4c7be1b..c576e1f 100644 --- a/pooled_thread.cpp +++ b/pooled_thread.cpp @@ -5,7 +5,7 @@ -namespace commoncpp { +namespace common { void PooledThread::main_loop() { // Loop until shutdown is requested while (!shutdown_requested) {