Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL::ThreadStorage class Reference

TNL::ThreadStorage Class Reference

#include <tnlThread.h>


Detailed Description

Platform independent per-thread storage class.


Public Member Functions

 ThreadStorage ()
 ThreadStorage constructor.

 ~ThreadStorage ()
 ThreadStorage destructor.

void * get ()
 returns the per-thread stored void pointer for this ThreadStorage. The default value is NULL.

void set (void *data)
 sets the per-thread stored void pointer for this ThreadStorage object.


Private Attributes

pthread_key_t mThreadKey


Constructor & Destructor Documentation

TNL::ThreadStorage::ThreadStorage  ) 
 

ThreadStorage constructor.

TNL::ThreadStorage::~ThreadStorage  ) 
 

ThreadStorage destructor.


Member Function Documentation

void* TNL::ThreadStorage::get  ) 
 

returns the per-thread stored void pointer for this ThreadStorage. The default value is NULL.

void TNL::ThreadStorage::set void *  data  ) 
 

sets the per-thread stored void pointer for this ThreadStorage object.


Field Documentation

pthread_key_t TNL::ThreadStorage::mThreadKey [private]