---
name: "ACE_OS_Exit_Info"
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_OS_Exit_Info"
---

# ACE\_OS\_Exit\_Info(3)

Hold Object Manager cleanup (exit) information.

## NAME

ACE\_OS\_Exit\_Info -  Hold Object Manager cleanup (exit) information.

## SYNOPSIS

```
#include <ace/OS.h>
class ACE_OS_Exit_Info
{
  public:
    ACE_OS_Exit_Info (void);
    ~ACE_OS_Exit_Info (void);
    int at_exit_i (
        void *object,
        ACE_CLEANUP_FUNC cleanup_hook,
        void *param
        );
    int find (void *object);
    void call_hooks ();
  private:
    ACE_Cleanup_Info_Node *registered_objects_;
};
```

## DESCRIPTION

For internal use by the ACE library, only.

## PUBLIC MEMBERS

```
ACE_OS_Exit_Info (void);
```

Default constructor.

```
~ACE_OS_Exit_Info (void);
```

Destructor.

```
int at_exit_i (
    void *object,
    ACE_CLEANUP_FUNC cleanup_hook,
    void *param
    );
```

Use to register a cleanup hook.

```
int find (void *object);
```

Look for a registered cleanup hook object.  Returns 1 if already registered, 0 if not.

```
void call_hooks ();
```

Call all registered cleanup hooks, in reverse order of registration.

## PRIVATE MEMBERS

```
ACE_Cleanup_Info_Node *registered_objects_;
```

Keeps track of all registered objects.  The last node is only used to terminate the list (it doesn't contain a valid ACE\_Cleanup\_Info).

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