# OS_SetThreadParameter

## C Specification

      #include <nitro/os.h>

      void OS_SetThreadParameter( OSThread* thread, void* parameter );

## Arguments

thread | Pointer to the thread structure
parameter | Parameter value to be set

## Return Values

None.

## Description

This function sets the user parameter for a thread.

The user parameter is a region that can be used freely by the user. One `void*` type region is give to all threads for this purpose, and its value may be used in any way. The system does not modify or reference this value.

Use `OS_GetThreadParameter()` to get the user parameter that has been set.

## See Also

`OS_GetThreadParameter``
`

## Revision History

07/08/2005 Initial version.