mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
thread: fixed compiler warnings on non-Linux systems that use pthread.
(static function rtkit_setpriority was unused, moved it in with rest of __LINUX__ section.)
This commit is contained in:
parent
49881861b1
commit
0ad4b0b697
@ -184,6 +184,7 @@ SDL_ThreadID(void)
|
|||||||
return ((SDL_threadID) pthread_self());
|
return ((SDL_threadID) pthread_self());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if __LINUX__
|
||||||
/* d-bus queries to org.freedesktop.RealtimeKit1. */
|
/* d-bus queries to org.freedesktop.RealtimeKit1. */
|
||||||
#if SDL_USE_LIBDBUS
|
#if SDL_USE_LIBDBUS
|
||||||
|
|
||||||
@ -237,7 +238,6 @@ rtkit_setpriority(pid_t thread, int nice_level)
|
|||||||
|
|
||||||
#endif /* !SDL_USE_LIBDBUS */
|
#endif /* !SDL_USE_LIBDBUS */
|
||||||
|
|
||||||
#if __LINUX__
|
|
||||||
int
|
int
|
||||||
SDL_LinuxSetThreadPriority(Sint64 threadID, int priority)
|
SDL_LinuxSetThreadPriority(Sint64 threadID, int priority)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user