#include <cThreadLocalSys.h>
Store a sizeof(void*) value separate/local for each thread.
- Note
- Must manually supply PFLS_CALLBACK_FUNCTION thread destructor for this type else pointer leaks!
-
can't get data for thread other than current! NO GetDataForThreadId similar to MFC cThreadLocalObject<> cThreadLocal<>
◆ cThreadLocalSys()
Gray::cThreadLocalSys::cThreadLocalSys |
( |
PFLS_CALLBACK_FUNCTION |
pDestruct = nullptr | ) |
|
|
inlinenoexcept |
Allocate new (void*) to be stored for EACH thread. Associate this type with m_nTypeSlot
- pDestruct = supply a destructor if i think i need one when a thread is destroyed. (e.g. delete)
◆ ~cThreadLocalSys()
Gray::cThreadLocalSys::~cThreadLocalSys |
( |
| ) |
|
|
inline |
◆ GetData()
void* Gray::cThreadLocalSys::GetData |
( |
| ) |
const |
|
inlinenoexcept |
Get info stored for the current thread. from LPVOID Same as MFC::cThreadLocal<>:GetData()
◆ isInit()
bool Gray::cThreadLocalSys::isInit |
( |
| ) |
const |
|
inlinenoexcept |
◆ PutData()
bool Gray::cThreadLocalSys::PutData |
( |
void * |
pData | ) |
|
|
inlinenoexcept |
Store something unique to this thread. from LPVOID
The documentation for this class was generated from the following file: