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

ACE_TSS_Adapter Class Reference

This class encapsulates a TSS object and its associated C++ destructor function. It is used by the ACE_TSS... methods (in Synch_T.cpp) in order to allow an extern "C" cleanup routine to be used. Needed by the "frigging" MVS C++ compiler. More...

#include <Synch.h>

List of all members.

Public Methods

 ACE_TSS_Adapter (void *object, ACE_THR_DEST f)
 Initialize the adapter. More...

 ~ACE_TSS_Adapter (void)
 Default dtor. More...

void cleanup (void)
 Perform the cleanup operation. More...


Public Attributes

void * ts_obj_
 The real TS object. More...

ACE_THR_DEST func_
 The real cleanup routine for ts_obj;. More...


Detailed Description

This class encapsulates a TSS object and its associated C++ destructor function. It is used by the ACE_TSS... methods (in Synch_T.cpp) in order to allow an extern "C" cleanup routine to be used. Needed by the "frigging" MVS C++ compiler.

Objects of this class are stored in thread specific storage. ts_obj_ points to the "real" object and func_ is a pointer to the C++ cleanup function for ts_obj_.

Definition at line 797 of file Synch.h.


Constructor & Destructor Documentation

ACE_TSS_Adapter::ACE_TSS_Adapter void *    object,
ACE_THR_DEST    f
 

Initialize the adapter.

Definition at line 101 of file Synch.cpp.

00102   : ts_obj_ (object),
00103     func_ (f)
00104 {
00105   // ACE_TRACE ("ACE_TSS_Adapter::ACE_TSS_Adapter");
00106 }

ACE_INLINE ACE_TSS_Adapter::~ACE_TSS_Adapter void   
 

Default dtor.

Definition at line 955 of file Synch.i.

00956 {
00957 }


Member Function Documentation

void ACE_TSS_Adapter::cleanup void   
 

Perform the cleanup operation.

Definition at line 109 of file Synch.cpp.

References func_, and ts_obj_.

Referenced by ACE_TSS_C_cleanup.

00110 {
00111   // ACE_TRACE ("ACE_TSS_Adapter::cleanup");
00112   (*this->func_)(this->ts_obj_);  // call cleanup routine for ts_obj_
00113 }


Member Data Documentation

ACE_THR_DEST ACE_TSS_Adapter::func_
 

The real cleanup routine for ts_obj;.

Definition at line 815 of file Synch.h.

Referenced by cleanup.

void* ACE_TSS_Adapter::ts_obj_
 

The real TS object.

Definition at line 812 of file Synch.h.

Referenced by cleanup.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:58:41 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002