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:
parent
45b3bc83b5
commit
eeb7602821
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
|
||||
namespace commoncpp {
|
||||
namespace common {
|
||||
void PooledThread::main_loop() {
|
||||
// Loop until shutdown is requested
|
||||
while (!shutdown_requested) {
|
||||
|
|
Loading…
Add table
Reference in a new issue