Thread local storage for shutdown callback. More...
Public Attributes | |
TLS_shutdown_proc_t | m_pShutdown |
Callback to issue when this entry is released. | |
void * | m_pThis |
this pointer to pass as parameter for m_pShutdown |
Thread local storage for shutdown callback.
Every thread has memory assigned to each thread that contains a this pointer and a callback function. If the function is set to nullptr, no callback is issued. Otherwise, when the thread is shutdown, the function will be called to handle any sort of memory or resource cleanup needed for thread release.
TLS_shutdown_proc_t Burger::thread_local_storage_entry_t::m_pShutdown |
Callback to issue when this entry is released.
void* Burger::thread_local_storage_entry_t::m_pThis |
this pointer to pass as parameter for m_pShutdown