MITHREAD::LOCALSTORAGE Class Reference

The THREADLOCALSTORAGE class manages Thread Local Storage for multiple platforms. More...

#include <mi32/thrlcstr.h>

Inheritance diagram for MITHREAD::LOCALSTORAGE:
Inheritance graph
[legend]

List of all members.

Classes

class  BASE
 Interface class to delete the class when the thread local storage is freed. More...

Protected Member Functions

 LOCALSTORAGE ()
virtual ~LOCALSTORAGE ()
BASEGetValue () const
void SetValue (BASE *data)

Detailed Description

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


Constructor & Destructor Documentation

MITHREAD::LOCALSTORAGE::LOCALSTORAGE (  )  [protected]
virtual MITHREAD::LOCALSTORAGE::~LOCALSTORAGE (  )  [protected, virtual]

Default dtor.


Member Function Documentation

BASE* MITHREAD::LOCALSTORAGE::GetValue (  )  const [protected]

Get the BASE* value stored for the current thread.

Returns:
Thread Local Storage of BASE*
void MITHREAD::LOCALSTORAGE::SetValue ( BASE data  )  [protected]

Set the BASE* value stored for the current thread.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:36:38 2012 for TNTsdk 2012 by  doxygen 1.6.1