logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_SetCurrentThreadPriority - Set the priority for the current thread.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                    SDL_SetCurrentThreadPriority(3)

Description

       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.

Function Parameters

priority
              the SDL_ThreadPriority to set.

Name

       SDL_SetCurrentThreadPriority - Set the priority for the current thread.

Return Value

       for more information.

Synopsis

#include<SDL3/SDL_thread.h>boolSDL_SetCurrentThreadPriority(SDL_ThreadPrioritypriority);

See Also