Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Public Attributes | List of all members
Burger::ThreadLocalStorageEntry_t Struct Reference

Thread local storage for shutdown callback. More...

Public Attributes

TLSShutdownProc m_pShutdown
 Callback to issue when this entry is released.
 
voidm_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::ThreadLocalStorage_t

Member Data Documentation

◆ m_pShutdown

TLSShutdownProc Burger::ThreadLocalStorageEntry_t::m_pShutdown

Callback to issue when this entry is released.

◆ m_pThis

void* Burger::ThreadLocalStorageEntry_t::m_pThis

"this" pointer to pass as parameter for m_pShutdown