Added SDL_LinuxSetThreadPriority() to directly set the priority of a Linux thread (tid)

This function tries using RealtimeKit connecting over DBUS as needed.
This commit is contained in:
Sam Lantinga 2018-04-23 19:18:52 -07:00
parent 467b928af2
commit 9a335154f2
4 changed files with 42 additions and 18 deletions

View file

@ -708,3 +708,6 @@ SDL_DYNAPI_PROC(SDL_bool,SDL_IsAndroidTV,(void),(),return)
SDL_DYNAPI_PROC(double,SDL_log10,(double a),(a),return)
SDL_DYNAPI_PROC(float,SDL_log10f,(float a),(a),return)
SDL_DYNAPI_PROC(char*,SDL_GameControllerMappingForDeviceIndex,(int a),(a),return)
#ifdef __LINUX__
SDL_DYNAPI_PROC(int,SDL_LinuxSetThreadPriority,(Sint64 a, int b),(a,b),return)
#endif