---
name: "ACE_Thread_ID"
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_Thread_ID"
---

# ACE\_Thread\_ID(3)

Defines a platform-independent thread ID.

## NAME

ACE\_Thread\_ID -  Defines a platform-independent thread ID.

## SYNOPSIS

```
#include <ace/OS.h>
class ACE_Thread_ID
{
  public:
    ACE_Thread_ID (ACE_thread_t, ACE_hthread_t);
    ACE_Thread_ID (const ACE_Thread_ID &id);
    ACE_thread_t id (void);
    void id (ACE_thread_t);
    ACE_hthread_t handle (void);
    void handle (ACE_hthread_t);
    int operator== (const ACE_Thread_ID &) const;
    int operator!= (const ACE_Thread_ID &) const;
  private:
    ACE_thread_t thread_id_;
    ACE_hthread_t thread_handle_;
};
```

## Initialization method.

```
ACE_Thread_ID (ACE_thread_t, ACE_hthread_t);
```

```
ACE_Thread_ID (const ACE_Thread_ID &id);
```

## Set/Get the Thread ID.

```
ACE_thread_t id (void);
```

```
void id (ACE_thread_t);
```

## Set/Get the Thread handle.

```
ACE_hthread_t handle (void);
```

```
void handle (ACE_hthread_t);
```

!= Comparison operator.

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

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

## 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
