A ThreadLocalHolder which owns its objects.
More...
#include <ThreadLocalHolder.h>
template<class T>
class thread_utils::ThreadLocalOwner< T >
A ThreadLocalHolder which owns its objects.
This class merely adds deletion of the map elements in the destructor.
- Author
- Steve Farrell Steve.nosp@m.n.Fa.nosp@m.rrell.nosp@m.@cer.nosp@m.n.ch
Definition at line 93 of file ThreadLocalHolder.h.
◆ MapHash_t
◆ MapKey_t
◆ MapVal_t
◆ ThreadMap_t
◆ ~ThreadLocalOwner()
Destructor will clean up the storage.
Definition at line 97 of file ThreadLocalHolder.h.
99 delete mapPair.second;
◆ get()
◆ getMap()
◆ set()
Assign the object of the current thread.
Definition at line 67 of file ThreadLocalHolder.h.
68 const auto tid = std::this_thread::get_id();
◆ m_threadMap
The documentation for this class was generated from the following file: