![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cThreadLocalSys.h>
Public Member Functions | |
cThreadLocalSysNew () noexcept | |
TYPE * | GetDataNew () |
virtual void * | GetDataNewV () |
void | FreeDataManually () |
![]() | |
cThreadLocalSysT (PFLS_CALLBACK_FUNCTION pDestruct=nullptr) noexcept | |
TYPE * | GetData () const noexcept |
bool | PutData (TYPE * nData) noexcept |
![]() | |
cThreadLocalSys (PFLS_CALLBACK_FUNCTION pDestruct=nullptr) noexcept | |
~cThreadLocalSys () | |
bool | isInit () const noexcept |
void * | GetData () const noexcept |
bool | PutData (void *pData) noexcept |
Static Protected Member Functions | |
static void NTAPI | OnThreadClose (IN void *pData) |
like cThreadLocalSysT but with auto create/allocate/new TYPE if it doesn't already exist. Will delete when thread closes.
|
inlinenoexcept |
|
inline |
Manually free. reverse of GetDataNewV
|
inline |
Create new if not yet exist.
|
inlinevirtual |
override IThreadLocal This allows smarter usage and cleanup of this TYPE.
Implements Gray::IThreadLocal.
|
inlinestaticprotected |
The thread has closed (or cThreadLocalSys was destroyed) so destroy/free/delete my TYPE pointer object.