Skip to main content

SDL_SetLinuxThreadPriority

Function SDL_SetLinuxThreadPriority 

Source
pub unsafe extern "C" fn SDL_SetLinuxThreadPriority(
    threadID: Sint64,
    priority: c_int,
) -> bool
Expand description

Sets the UNIX nice value for a thread.

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

Parameter: threadID the Unix thread ID to change priority of. Parameter: priority the new, Unix-specific, priority value. Returns: true on success or false on failure; call SDL_GetError() for more information.

Thread Safety: It is safe to call this function from any thread.

Available Since: This function is available since SDL 3.2.0.