cgma
CubitConcurrent::ThreadLocalStorage< T > Class Template Reference

#include <CubitConcurrentApi.h>

List of all members.

Public Member Functions

 ThreadLocalStorage ()
 ~ThreadLocalStorage ()
T * local_data ()
void set_local_data (T *t)

Static Private Member Functions

static void cleanup (void *p)

Private Attributes

ThreadLocalStorageInterfacemTLS

Detailed Description

template<class T>
class CubitConcurrent::ThreadLocalStorage< T >

Definition at line 85 of file CubitConcurrentApi.h.


Constructor & Destructor Documentation

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

Member Function Documentation

template<class T >
static void CubitConcurrent::ThreadLocalStorage< T >::cleanup ( void *  p) [inline, static, private]

Definition at line 110 of file CubitConcurrentApi.h.

    {
      delete reinterpret_cast<T*>(p);
    }
template<class T >
T* CubitConcurrent::ThreadLocalStorage< T >::local_data ( ) [inline]

Definition at line 98 of file CubitConcurrentApi.h.

    {
      return reinterpret_cast<T*>(mTLS->local_data());
    }
template<class T >
void CubitConcurrent::ThreadLocalStorage< T >::set_local_data ( T *  t) [inline]

Definition at line 103 of file CubitConcurrentApi.h.

    {
      mTLS->set_local_data(t);
    }

Member Data Documentation

Definition at line 115 of file CubitConcurrentApi.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines