---
name: "ACE_TSS_Ref"
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_Ref"
---

# ACE\_TSS\_Ref(3)

"Reference count" for thread-specific storage keys.

## NAME

ACE\_TSS\_Ref -  "Reference count" for thread-specific storage keys.

## SYNOPSIS

```
#include <ace/OS.h>
class ACE_TSS_Ref
{
  public:
    ACE_TSS_Ref (ACE_thread_t id);
    ACE_TSS_Ref (void);
    int operator== (const ACE_TSS_Ref &) const;
    int operator!= (const ACE_TSS_Ref &) const;
    ACE_thread_t tid_;
};
```

## DESCRIPTION

Since the ACE\_Unbounded\_Stack doesn't allow duplicates, the "reference count" is the identify of the thread\_id.

## PUBLIC MEMBERS

```
ACE_TSS_Ref (ACE_thread_t id);
```

Constructor

```
ACE_TSS_Ref (void);
```

Default constructor

```
int operator== (const ACE_TSS_Ref &) const;
```

Check for equality.

```
int operator!= (const ACE_TSS_Ref &) const;
```

Check for inequality.

```
ACE_thread_t tid_;
```

ID of thread using a specific key.

## AUTHOR

Doug Schmidt schmidt@cs.wustl.edu, Jesper S. M\|ller stophph@diku.dk, and a cast of thousands...

## The ACE\_Sched\_Priority type should be used for platform-

independent thread and process priorities, by convention. int should be used for OS-specific priorities.

## typedef for the \_stat data structure

## Giving unique ACE scoped names for some important

RTSignal-Related constants. Becuase sometimes, different platforms use different names for these constants.

## LIBRARY

ace
