xmltooling::ThreadKey Class Reference

A class for managing Thread Local Storage values. More...

#include <xmltooling/util/Threads.h>

List of all members.

Public Member Functions

virtual int setData (void *data)=0
 Sets the value for a TLS key.
virtual void * getData () const =0
 Returns the value for a TLS key.

Static Public Member Functions

static ThreadKeycreate (void(*destroy_fn)(void *))
 Creates a new TLS key.


Detailed Description

A class for managing Thread Local Storage values.


Member Function Documentation

static ThreadKey* xmltooling::ThreadKey::create ( void(*)(void *)  destroy_fn  )  [static]

Creates a new TLS key.

Parameters:
destroy_fn a functon to cleanup key values
Returns:
the new key

virtual void* xmltooling::ThreadKey::getData (  )  const [pure virtual]

Returns the value for a TLS key.

Returns:
the value or NULL

virtual int xmltooling::ThreadKey::setData ( void *  data  )  [pure virtual]

Sets the value for a TLS key.

Parameters:
data the value to set
Returns:
0 for success, non-zero for failure


The documentation for this class was generated from the following file:
Generated on Mon Oct 19 14:18:35 2009 for xmltooling by  doxygen 1.4.7