Browse Source

Rename Linux-only variable.

Sam Lantinga 4 years ago
parent
commit
c7d1dab1fe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/thread/pthread/SDL_systhread.c

+ 2 - 2
src/thread/pthread/SDL_systhread.c

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