threadmm::cthreads::thread_specific< Data, Cleanup > Class Template Reference
[Cthreads backend classes]

#include <threadmm/thread_specific.hh>

List of all members.


Detailed Description

template<typename Data, template< class > class Cleanup>
class threadmm::cthreads::thread_specific< Data, Cleanup >

Thread-specific storage.

Parameters:
Data The type of data to store
Cleanup Cleanup handler
See also:
threadmm::thread_specific


Public Types

typedef Data data_type
typedef Cleanup< Data > cleanup_type

Public Member Functions

 thread_specific ()
virtual ~thread_specific ()
data_typeget () volatile
void set (data_type *data) volatile

Protected Member Functions

void create () volatile


Member Typedef Documentation

template<typename Data, template< class > class Cleanup>
typedef Cleanup<Data> threadmm::cthreads::thread_specific< Data, Cleanup >::cleanup_type
 

The stored data type.

template<typename Data, template< class > class Cleanup>
typedef Data threadmm::cthreads::thread_specific< Data, Cleanup >::data_type
 


Constructor & Destructor Documentation

template<typename Data, template< class > class Cleanup>
threadmm::cthreads::thread_specific< Data, Cleanup >::thread_specific  )  [inline]
 

template<typename Data, template< class > class Cleanup>
virtual threadmm::cthreads::thread_specific< Data, Cleanup >::~thread_specific  )  [inline, virtual]
 


Member Function Documentation

template<typename Data, template< class > class Cleanup>
void threadmm::cthreads::thread_specific< Data, Cleanup >::create  )  volatile [inline, protected]
 

Create a key.

template<typename Data, template< class > class Cleanup>
Data * threadmm::cthreads::thread_specific< Data, Cleanup >::get  )  volatile [inline]
 

Get the data stored in the thread-specific storage.

Returns:
The data stored, or 0 (null) if there's none

template<typename Data, template< class > class Cleanup>
void threadmm::cthreads::thread_specific< Data, Cleanup >::set data_type data  )  volatile [inline]
 

Set the data stored in the thread-specific storage.

Parameters:
data The data stored


The documentation for this class was generated from the following file:
Top of page
Last update Tue Nov 9 12:40:51 2004
Christian Holm
Created by DoxyGen 1.3.9.1