Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
ThreadLocalStorage< T > Class Template Reference

Template based Thread Local Storage. More...

List of all members.

Public Member Functions

 ThreadLocalStorage (PRThreadPrivateDTOR dtor)
void set (T value)
T get ()

Private Attributes

PRUintn mIndex
PRBool mValid

Detailed Description

template<class T>
class ThreadLocalStorage< T >

Template based Thread Local Storage.

Definition at line 68 of file lcglue.cpp.


Constructor & Destructor Documentation

template<class T>
ThreadLocalStorage< T >::ThreadLocalStorage ( PRThreadPrivateDTOR  dtor) [inline]

Definition at line 70 of file lcglue.cpp.

Here is the call graph for this function:


Member Function Documentation

template<class T>
T ThreadLocalStorage< T >::get ( ) [inline]

Definition at line 80 of file lcglue.cpp.

       {
              return (T) (mValid ? PR_GetThreadPrivate(mIndex) : 0);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
void ThreadLocalStorage< T >::set ( T  value) [inline]

Definition at line 75 of file lcglue.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

template<class T>
PRUintn ThreadLocalStorage< T >::mIndex [private]

Definition at line 86 of file lcglue.cpp.

template<class T>
PRBool ThreadLocalStorage< T >::mValid [private]

Definition at line 87 of file lcglue.cpp.


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