---
name: "ACE_TSS_Adapter"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_TSS_Adapter"
---

# ACE\_TSS\_Adapter(3)

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.

## NAME

ACE\_TSS\_Adapter -  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.

## SYNOPSIS

```
#include <ace/Synch.h>
class ACE_TSS_Adapter
{
  public:
    ACE_TSS_Adapter (void *object, ACE_THR_DEST f);
    ~ACE_TSS_Adapter (void);
    void cleanup (void);
    void *ts_obj_;
    ACE_THR_DEST func_;
};
```

## DESCRIPTION

Wrappers for various synchronization routines.

## PUBLIC MEMBERS

```
ACE_TSS_Adapter (void *object, ACE_THR_DEST f);
```

Initialize the adapter.

```
~ACE_TSS_Adapter (void);
```

Default dtor.

```
void cleanup (void);
```

Perform the cleanup operation.

```
void *ts_obj_;
```

The real TS object.

```
ACE_THR_DEST func_;
```

The real cleanup routine for ts\_obj;

## AUTHOR

Doug Schmidt

## LIBRARY

ace
