---
name: "SDL_SetLinuxThreadPriority"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_SetLinuxThreadPriority"
---

# SDL\_SetLinuxThreadPriority(3)

Sets the UNIX nice value for a thread.

## NAME

SDL\_SetLinuxThreadPriority - Sets the UNIX nice value for a thread.

## HEADER FILE

Defined in SDL3/SDL\_system.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_SetLinuxThreadPriority(Sint64 threadID, int priority);**

## DESCRIPTION

This uses setpriority() if possible, and RealtimeKit if available.

## FUNCTION PARAMETERS

- *threadID*

  the Unix thread ID to change priority of.

- *priority*

  the new, Unix-specific, priority value.

## RETURN VALUE

Returns true on success or false on failure; call

**SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.
