Skip to content

Commit

Permalink
Rename Linux-only variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 26, 2020
1 parent b820a81 commit c7d1dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thread/pthread/SDL_systhread.c
Expand Up @@ -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);
Expand Down

0 comments on commit c7d1dab

Please sign in to comment.