The THREADLOCALSTORAGE class manages Thread Local Storage for multiple platforms. More...
#include <mi32/thrlcstr.h>

Classes | |
| class | BASE |
| Interface class to delete the class when the thread local storage is freed. More... | |
Protected Member Functions | |
| LOCALSTORAGE () | |
| virtual | ~LOCALSTORAGE () |
| BASE * | GetValue () const |
| void | SetValue (BASE *data) |
The THREADLOCALSTORAGE class manages Thread Local Storage for multiple platforms.
This class is mainly used as a static global This class is to be used ONLY from a local static variable in a static function or method. Any other use will cause memory leaks and / or process instability. It is expected that the THREADLOCALSTORAGE_T template class be used for most TLS needs
| MITHREAD::LOCALSTORAGE::LOCALSTORAGE | ( | ) | [protected] |
| virtual MITHREAD::LOCALSTORAGE::~LOCALSTORAGE | ( | ) | [protected, virtual] |
Default dtor.
| BASE* MITHREAD::LOCALSTORAGE::GetValue | ( | ) | const [protected] |
Get the BASE* value stored for the current thread.
| void MITHREAD::LOCALSTORAGE::SetValue | ( | BASE * | data | ) | [protected] |
Set the BASE* value stored for the current thread.
1.6.1