sdlSetThreadPriority function
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.
extern DECLSPEC int SDLCALL SDL_SetThreadPriority(SDL_ThreadPriority priority)
Implementation
int sdlSetThreadPriority(int priority) {
final sdlSetThreadPriorityLookupFunction = libSdl2.lookupFunction<
Int32 Function(Int32 priority),
int Function(int priority)>('SDL_SetThreadPriority');
return sdlSetThreadPriorityLookupFunction(priority);
}