![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cThreadLocal.h>
Public Types | |
| typedef cThreadLocalInst< cRefPtr< TYPE >, TYPE * > | TYPE_INST |
| typedef cThreadLocalType< TYPE_INST, TYPE * > | SUPER_t |
Public Member Functions | |
| TYPE * | GetDataNew () |
| virtual void * | GetDataNewV () |
Public Member Functions inherited from GrayLib::cThreadLocalType< cThreadLocalInst< cRefPtr< TYPE >, TYPE * >, TYPE * > | |
| cThreadLocalType () | |
| virtual | ~cThreadLocalType () |
| TYPE * | GetDataForThreadId (THREADID_t nThreadID) const |
| TYPE * | GetData () const |
| bool | PutData (TYPE * Data) |
| virtual void | OnThreadClose (THREADID_t nThreadID) |
| void | RemoveAll () |
| ITERATE_t | GetSize () const |
| bool | IsEmpty () const |
Additional Inherited Members | |
Public Attributes inherited from GrayLib::cThreadLocalType< cThreadLocalInst< cRefPtr< TYPE >, TYPE * >, TYPE * > | |
| cThreadLockFast | m_Lock |
Protected Attributes inherited from GrayLib::cThreadLocalType< cThreadLocalInst< cRefPtr< TYPE >, TYPE * >, TYPE * > | |
| cArraySortStructHash< cThreadLocalInst< cRefPtr< TYPE >, TYPE * >, THREADID_t > | m_a |
Thread local type is a cRefPtr<>. It can outlive the thread if there is a reference.
| typedef cThreadLocalType< TYPE_INST, TYPE* > GrayLib::cThreadLocalTypeSmart< TYPE >::SUPER_t |
| typedef cThreadLocalInst< cRefPtr<TYPE>, TYPE*> GrayLib::cThreadLocalTypeSmart< TYPE >::TYPE_INST |
|
inline |
Create if not exist yet.
|
inlinevirtual |
IThreadLocal.
Implements Gray::IThreadLocal.