News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

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]