]> git.sesse.net Git - vlc/commitdiff
Winstore: allow SetThreadPriority call
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 3 Dec 2014 13:47:42 +0000 (14:47 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 3 Dec 2014 13:47:42 +0000 (14:47 +0100)
This mandates 8.1 though

src/win32/thread.c

index 9bc787dcc4b4d147e2b59080b80f7dcb3cfe247b..76986759c9ff9d9fa64b438415faab5e293cfd3f 100644 (file)
@@ -511,10 +511,8 @@ static int vlc_clone_attr (vlc_thread_t *p_handle, bool detached,
     if (p_handle != NULL)
         *p_handle = th;
 
-#if !VLC_WINSTORE_APP
     if (priority)
         SetThreadPriority (th->id, priority);
-#endif
 
     return 0;
 }
@@ -549,10 +547,8 @@ int vlc_clone_detach (vlc_thread_t *p_handle, void *(*entry) (void *),
 
 int vlc_set_priority (vlc_thread_t th, int priority)
 {
-#if !VLC_WINSTORE_APP
     if (!SetThreadPriority (th->id, priority))
         return VLC_EGENERIC;
-#endif
     return VLC_SUCCESS;
 }