1
0
Fork 0
mirror of https://gitlab.com/niansa/commoncpp.git synced 2025-03-06 20:48:30 +01:00

Moved pooled_thread into the right namespace

This commit is contained in:
niansa 2023-06-24 16:27:11 +02:00
parent 45b3bc83b5
commit eeb7602821
2 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,7 @@
namespace commoncpp {
namespace common {
// This thread could be part of a thread pool
class PooledThread {
using QueueEntry = std::function<void ()>;
@ -59,4 +59,8 @@ public:
}
};
}
namespace [[deprecated("Use the common namespace instead of commoncpp")]] commoncpp {
using namespace common;
}
#endif // SCHEDULED_THREAD_HPP

View file

@ -5,7 +5,7 @@
namespace commoncpp {
namespace common {
void PooledThread::main_loop() {
// Loop until shutdown is requested
while (!shutdown_requested) {