![]() |
ATLAS Offline Software
|
A ThreadLocalHolder which owns its objects. More...
#include <ThreadLocalHolder.h>
Public Types | |
| using | MapKey_t = std::thread::id |
| using | MapVal_t = T* |
| using | MapHash_t = std::hash<MapKey_t> |
| using | ThreadMap_t |
Public Member Functions | |
| ~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. | |
Protected Attributes | |
| ThreadMap_t | m_threadMap |
| The wrapped thread-local storage container. | |
A ThreadLocalHolder which owns its objects.
This class merely adds deletion of the map elements in the destructor.
Definition at line 93 of file ThreadLocalHolder.h.
|
inherited |
Definition at line 55 of file ThreadLocalHolder.h.
|
inherited |
Definition at line 53 of file ThreadLocalHolder.h.
|
inherited |
Definition at line 54 of file ThreadLocalHolder.h.
|
inherited |
Definition at line 56 of file ThreadLocalHolder.h.
|
inline |
Destructor will clean up the storage.
Definition at line 97 of file ThreadLocalHolder.h.
|
inlineinherited |
|
inlineinherited |
Constant access for iteration, etc.
Definition at line 73 of file ThreadLocalHolder.h.
|
inlineinherited |
Assign the object of the current thread.
Definition at line 67 of file ThreadLocalHolder.h.
|
protectedinherited |
The wrapped thread-local storage container.
Definition at line 80 of file ThreadLocalHolder.h.