SDL_SetLinuxThreadPriorityAndPolicy

Sets the priority (not nice level) and scheduling policy for a thread.

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

version(linux)
extern (C) nothrow @nogc extern
bool
SDL_SetLinuxThreadPriorityAndPolicy

Parameters

threadID Sint64

The Unix thread ID to change priority of.

sdlPriority int

The new SDL_ThreadPriority value.

schedPolicy int

The new scheduling policy (SCHED_FIFO, SCHED_RR, SCHED_OTHER, etc...).

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Meta