A ThreadLocalHolder which owns its objects.
More...
#include <ThreadLocalHolder.h>
|
| | ~ThreadLocalOwner () |
| | Destructor will clean up the storage.
|
| T * | get () |
| | Get the object of the current thread.
|
| void | set (T *obj) |
| | Assign the object of the current thread.
|
| const ThreadMap_t & | getMap () const |
| | Constant access for iteration, etc.
|
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
Initial value:
tbb::concurrent_unordered_map< MapKey_t, MapVal_t, MapHash_t >
Definition at line 56 of file ThreadLocalHolder.h.
◆ ~ThreadLocalOwner()
Destructor will clean up the storage.
Definition at line 97 of file ThreadLocalHolder.h.
97 {
100 }
ThreadMap_t m_threadMap
The wrapped thread-local storage container.
A ThreadLocalHolder which owns its objects.
◆ get()
Get the object of the current thread.
Definition at line 60 of file ThreadLocalHolder.h.
60 {
64 }
A thread-local storage wrapper.
◆ getMap()
◆ set()
◆ m_threadMap
The documentation for this class was generated from the following file: