Rename Linux-only variable.

This commit is contained in:
Sam Lantinga 2020-05-26 13:19:41 -07:00
parent b820a81ffb
commit c7d1dab1fe
1 changed files with 2 additions and 2 deletions

View File

@ -247,8 +247,8 @@ SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
} }
#if __LINUX__ #if __LINUX__
pid_t thread = syscall(SYS_gettid); pid_t linuxTid = syscall(SYS_gettid);
return SDL_LinuxSetThreadPriorityAndPolicy(thread, priority, policy); return SDL_LinuxSetThreadPriorityAndPolicy(linuxTid, priority, policy);
#else #else
if (priority == SDL_THREAD_PRIORITY_LOW) { if (priority == SDL_THREAD_PRIORITY_LOW) {
sched.sched_priority = sched_get_priority_min(policy); sched.sched_priority = sched_get_priority_min(policy);