Sets the UNIX nice value for a thread.
Defined in SDL_system.h, but apps should use #include <SDL3/SDL.h>
int SDL_LinuxSetThreadPriority(Sint64 threadID, int priority);
threadID | the Unix thread ID to change priority of. |
priority | The new, Unix-specific, priority value. |
Returns 0 on success, or -1 on error.
This uses setpriority() if possible, and RealtimeKit if available.
This function is available since SDL 3.0.0.
CategoryAPI, CategoryAPIFunction, CategoryLinux