Base class allowing an instance of an object to be stored per thread. More...
#include <arccore/concurrency/ThreadPrivate.h>
Classes | |
| class | ICreateFunctor |
Public Member Functions | |
| ThreadPrivateBase (ThreadPrivateStorage *key, ICreateFunctor *create_functor) | |
| void * | item () |
| Retrieves the instance specific to the current thread. | |
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.