mirror of https://github.com/encounter/SDL.git
Fixed build
This commit is contained in:
parent
f521b22eb5
commit
8f780e76e1
|
@ -299,7 +299,7 @@ SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
|
||||||
int max_priority = sched_get_priority_max(policy);
|
int max_priority = sched_get_priority_max(policy);
|
||||||
sched.sched_priority = (min_priority + (max_priority - min_priority) / 2);
|
sched.sched_priority = (min_priority + (max_priority - min_priority) / 2);
|
||||||
if (priority == SDL_THREAD_PRIORITY_HIGH) {
|
if (priority == SDL_THREAD_PRIORITY_HIGH) {
|
||||||
sched.sched_priority += (max_priority - min_priority) / 4);
|
sched.sched_priority += ((max_priority - min_priority) / 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (pthread_setschedparam(thread, policy, &sched) != 0) {
|
if (pthread_setschedparam(thread, policy, &sched) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue