# OS_GetThreadDestructor

## Syntax

      #include <nitro/os.h>

      OSThreadDestructor OS_GetThreadDestructor( const OSThread* thread );

## Arguments

thread | Pointer to the thread structure that obtains the destructor

## Return Values

Pointer to the destructor function set for the specified thread.

## Description

This function gets the currently set destructor for the specified thread.

Refer to the description of `OS_SetThreadDestructor()` for information about the destructor function.

## See Also

`OS_SetThreadDestructor```

## Revision History

2005/09/06 Added `const` to the argument of the `OSThread*` model.
2005/07/08 Initial version.

CONFIDENTIAL