Function sdl2_sys::SDL_LinuxSetThreadPriorityAndPolicy
source · pub unsafe extern "C" fn SDL_LinuxSetThreadPriorityAndPolicy(
threadID: Sint64,
sdlPriority: c_int,
schedPolicy: c_int,
) -> c_int
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.