Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::thread_local_storage_entry_t Struct Reference

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

Detailed Description

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.

Note
This structure is managed by the Thread manager and should not be used by applications directly
See also
Burger::Thread, or Burger::thread_local_storage_t

Member Data Documentation

◆ m_pShutdown

TLS_shutdown_proc_t Burger::thread_local_storage_entry_t::m_pShutdown

Callback to issue when this entry is released.

◆ m_pThis

void* Burger::thread_local_storage_entry_t::m_pThis

this pointer to pass as parameter for m_pShutdown