sdlSetLinuxThreadPriority function
Sets the UNIX nice value for a thread.
This uses setpriority() if possible, and RealtimeKit if available.
\param threadID the Unix thread ID to change priority of. \param priority the new, Unix-specific, priority value. \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC bool SDLCALL SDL_SetLinuxThreadPriority(Sint64 threadID, int priority)
Implementation
bool sdlSetLinuxThreadPriority(int threadId, int priority) {
final sdlSetLinuxThreadPriorityLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Int64 threadId, Int32 priority),
int Function(int threadId, int priority)>('SDL_SetLinuxThreadPriority');
return sdlSetLinuxThreadPriorityLookupFunction(threadId, priority) == 1;
}