pub unsafe extern "C" fn SDL_SetThreadPriority(
    priority: SDL_ThreadPriority
) -> c_int
Expand description

Set the priority for the current thread.

Note that some platforms will not let you alter the priority (or at least, promote the thread to a higher priority) at all, and some require you to be an administrator account. Be prepared for this to fail.

\param priority the SDL_ThreadPriority to set \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.