Function SDL_LinuxSetThreadPriorityAndPolicy

pub unsafe extern "C" fn SDL_LinuxSetThreadPriorityAndPolicy(
    threadID: i64,
    sdlPriority: i32,
    schedPolicy: i32,
) -> i32
Available on crate feature dep_sdl2 only.
Expand description

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

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

\param threadID The Unix thread ID to change priority of. \param sdlPriority The new SDL_ThreadPriority value. \param schedPolicy The new scheduling policy (SCHED_FIFO, SCHED_RR, SCHED_OTHER, etc…) \returns 0 on success, or -1 on error.

\since This function is available since SDL 2.0.18.