BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
ThreadNamer.h
1 #pragma once
2 
3 #include <string>
4 
5 namespace BeeeOn {
6 
11 class ThreadNamer {
12 public:
13  ThreadNamer(const std::string &name, bool permanent = false);
14  ~ThreadNamer();
15 
16 private:
17  std::string m_originalName;
18  bool m_permanent;
19 };
20 
21 }
Name the current thread. The name can be assigned permanently or just until the destructor is called...
Definition: ThreadNamer.h:11