cgma
|
#include <CubitConcurrentApi.h>
Public Member Functions | |
ThreadLocalStorage () | |
~ThreadLocalStorage () | |
T * | local_data () |
void | set_local_data (T *t) |
Static Private Member Functions | |
static void | cleanup (void *p) |
Private Attributes | |
ThreadLocalStorageInterface * | mTLS |
Definition at line 85 of file CubitConcurrentApi.h.
CubitConcurrent::ThreadLocalStorage< T >::ThreadLocalStorage | ( | ) | [inline] |
Definition at line 88 of file CubitConcurrentApi.h.
CubitConcurrent::ThreadLocalStorage< T >::~ThreadLocalStorage | ( | ) | [inline] |
Definition at line 93 of file CubitConcurrentApi.h.
static void CubitConcurrent::ThreadLocalStorage< T >::cleanup | ( | void * | p | ) | [inline, static, private] |
Definition at line 110 of file CubitConcurrentApi.h.
{ delete reinterpret_cast<T*>(p); }
T* CubitConcurrent::ThreadLocalStorage< T >::local_data | ( | ) | [inline] |
Definition at line 98 of file CubitConcurrentApi.h.
{ return reinterpret_cast<T*>(mTLS->local_data()); }
void CubitConcurrent::ThreadLocalStorage< T >::set_local_data | ( | T * | t | ) | [inline] |
Definition at line 103 of file CubitConcurrentApi.h.
{ mTLS->set_local_data(t); }
ThreadLocalStorageInterface* CubitConcurrent::ThreadLocalStorage< T >::mTLS [private] |
Definition at line 115 of file CubitConcurrentApi.h.