Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Wefts::OSSpecificDataPthread Class Reference
[OS Threading Level Abstraction.]

Wrapper class for pthread specific data access (tsd/tls). More...

#include <wefts_os_pthread.h>

Inheritance diagram for Wefts::OSSpecificDataPthread:

Inheritance graph
[legend]
Collaboration diagram for Wefts::OSSpecificDataPthread:

Collaboration graph
[legend]
List of all members.

Public Methods

 OSSpecificDataPthread () throw ( InitError )
 Prepares the internal data.

 ~OSSpecificDataPthread ()
 Destroys the internal data.

void * data () const
 Get the specific data.

void data (const void *dt)
 Set the specific data.


Private Attributes

pthread_key_t m_data

Detailed Description

Wrapper class for pthread specific data access (tsd/tls).


Constructor & Destructor Documentation

Wefts::OSSpecificDataPthread::OSSpecificDataPthread   throw ( InitError ) [inline]
 

Prepares the internal data.

Todo:
add an exception rising on failure

Wefts::OSSpecificDataPthread::~OSSpecificDataPthread   [inline]
 

Destroys the internal data.

In a well designed application this should make no sense at all, but anyway we provide it.


Member Function Documentation

void Wefts::OSSpecificDataPthread::data const void *    dt [inline, virtual]
 

Set the specific data.

Implements Wefts::OSSpecificDataBase.

void* Wefts::OSSpecificDataPthread::data   [inline, virtual]
 

Get the specific data.

Implements Wefts::OSSpecificDataBase.


Member Data Documentation

pthread_key_t Wefts::OSSpecificDataPthread::m_data [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 18 05:53:46 2003 for Wefts by doxygen1.2.18