Base class allowing an instance of an object to be stored per thread. More...
Classes | |
| class | ICreateFunctor |
Public Member Functions | |
| ThreadPrivateBase (ThreadPrivateStorage *key, ICreateFunctor *create_functor) | |
| void * | item () |
| Retrieves the instance specific to the current thread. | |
Private Attributes | |
| ThreadPrivateStorage * | m_key |
| GlibMutex | m_mutex |
| ICreateFunctor * | m_create_functor |
Base class allowing an instance of an object to be stored per thread.
Definition at line 75 of file ThreadPrivate.h.
|
inline |
Definition at line 90 of file ThreadPrivate.h.
|
inline |
Definition at line 96 of file ThreadPrivate.h.
| void * Arcane::ThreadPrivateBase::item | ( | ) |
Retrieves the instance specific to the current thread.
If it does not yet exist, it is created via the functor passed as an argument to the constructor.
Definition at line 60 of file ThreadPrivate.cc.
|
private |
Definition at line 118 of file ThreadPrivate.h.
|
private |
Definition at line 116 of file ThreadPrivate.h.
|
private |
Definition at line 117 of file ThreadPrivate.h.