tls_tricks::tls_blob< T > Struct Template Reference

List of all members.

Detailed Description

template<typename T>
struct tls_tricks::tls_blob< T >

Wrapper for a type, used by TLS_STRUCT helper macro.

All thread-local variables declared by TLS_STRUCT are actually just a bunch of bytes... until init() and fini() are called, that is. After that the tls_blob acts like a smart pointer.

Definition at line 140 of file tls.h.

Public Types

enum  

Public Member Functions

void init ()
void fini ()
T * get ()
 Used by fini() and init() and directly by macros.

Public Attributes

long _reserved_space [ARRAY_SIZE]


Member Function Documentation

template<typename T>
void tls_tricks::tls_blob< T >::init (  )  [inline]

Placement new, using _reserved_space, to make the type T's constructor get called.

Definition at line 150 of file tls.h.

References tls_tricks::tls_blob< T >::get().

Here is the call graph for this function:

template<typename T>
void tls_tricks::tls_blob< T >::fini (  )  [inline]

Call T's destructor

Definition at line 153 of file tls.h.

References tls_tricks::tls_blob< T >::get().

Here is the call graph for this function:


The documentation for this struct was generated from the following file:
Generated on Wed Jul 7 17:22:44 2010 for Shore Storage Manager by  doxygen 1.4.7