SDL/src/thread
Sam Lantinga abd5841850 Make some changes to SDL_SetThreadPriority to try and have SDL transparently handle more of the work.
1. Comment that SDL_SetThreadPriority will make any necessary system changes when applying priority.
2. Add a hint to override SDL's default behavior for scheduler policy.
3. Modify the pthreads SDL_SetThreadPriority so that instead of just using the current thread scheduler policy it will change it to a policy that should work best for the requested priority.
4. Add hint checks in SDL_SetThreadPriority so that #3 can be overridden if desired.
5. Modify the Linux SDL_SetThreadPriority so that in the case that policy, either by SDL defaults or from the hint, is a realtime policy it uses the realtime rtkit API.
6. Prior to calling rtkit on Linux make the necessary thread state changes that rtkit requires.  Currently this is done every time as it isn't expected that SDL_SetThreadPriority will be called repeatedly for a thread.
2020-05-26 13:19:19 -07:00
..
generic thread: Put all important SDL_CreateThread internal data into SDL_Thread. 2020-03-26 22:14:59 -04:00
psp thread: Put all important SDL_CreateThread internal data into SDL_Thread. 2020-03-26 22:14:59 -04:00
pthread Make some changes to SDL_SetThreadPriority to try and have SDL transparently handle more of the work. 2020-05-26 13:19:19 -07:00
stdcpp Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
windows thread: Put all important SDL_CreateThread internal data into SDL_Thread. 2020-03-26 22:14:59 -04:00
SDL_systhread.h thread: Put all important SDL_CreateThread internal data into SDL_Thread. 2020-03-26 22:14:59 -04:00
SDL_thread.c thread: Put all important SDL_CreateThread internal data into SDL_Thread. 2020-03-26 22:14:59 -04:00
SDL_thread_c.h thread: Put all important SDL_CreateThread internal data into SDL_Thread. 2020-03-26 22:14:59 -04:00