Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cThreadLocalTypeSmart< TYPE > Class Template Reference

#include <cThreadLocal.h>

Inheritance diagram for GrayLib::cThreadLocalTypeSmart< TYPE >:
GrayLib::cThreadLocalType< cThreadLocalInst< cRefPtr< TYPE >, TYPE * >, TYPE * > IThreadCloseHandler Gray::IThreadLocal

Public Types

typedef cThreadLocalInst< cRefPtr< TYPE >, TYPE * > TYPE_INST
 
typedef cThreadLocalType< TYPE_INST, TYPE * > SUPER_t
 

Public Member Functions

TYPEGetDataNew ()
 
virtual void * GetDataNewV ()
 
- Public Member Functions inherited from GrayLib::cThreadLocalType< cThreadLocalInst< cRefPtr< TYPE >, TYPE * >, TYPE * >
 cThreadLocalType ()
 
virtual ~cThreadLocalType ()
 
TYPEGetDataForThreadId (THREADID_t nThreadID) const
 
TYPEGetData () 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
 

Detailed Description

template<class TYPE>
class GrayLib::cThreadLocalTypeSmart< TYPE >

Thread local type is a cRefPtr<>. It can outlive the thread if there is a reference.

Member Typedef Documentation

◆ SUPER_t

◆ TYPE_INST

Member Function Documentation

◆ GetDataNew()

template<class TYPE >
TYPE* GrayLib::cThreadLocalTypeSmart< TYPE >::GetDataNew ( )
inline

Create if not exist yet.

◆ GetDataNewV()

template<class TYPE >
virtual void* GrayLib::cThreadLocalTypeSmart< TYPE >::GetDataNewV ( )
inlinevirtual

IThreadLocal.

Implements Gray::IThreadLocal.


The documentation for this class was generated from the following file: