Added SDL_THREAD_PRIORITY_TIME_CRITICAL

This commit is contained in:
Sam Lantinga 2018-04-23 22:07:56 -07:00
parent db94dfb1d5
commit f521b22eb5
6 changed files with 16 additions and 5 deletions

View file

@ -231,6 +231,8 @@ SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
value = THREAD_PRIORITY_LOWEST;
} else if (priority == SDL_THREAD_PRIORITY_HIGH) {
value = THREAD_PRIORITY_HIGHEST;
} else if (priority == SDL_THREAD_PRIORITY_TIME_CRITICAL) {
value = THREAD_PRIORITY_TIME_CRITICAL;
} else {
value = THREAD_PRIORITY_NORMAL;
}