Commit c7d1dab1fe8b2f7bb94b1d7e331ea800e39498d3

Sam Lantinga 2020-05-26T13:19:41

Rename Linux-only variable.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/thread/pthread/SDL_systhread.c b/src/thread/pthread/SDL_systhread.c
index 700c0a5..d2f2043 100644
--- a/src/thread/pthread/SDL_systhread.c
+++ b/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);