[vlc-commits] Winstore: allow SetThreadPriority call
    Jean-Baptiste Kempf 
    git at videolan.org
       
    Wed Dec  3 16:15:04 CET 2014
    
    
  
vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec  3 14:47:42 2014 +0100| [ad137637c2fae39eeae0b266ea61df58dc216afd] | committer: Jean-Baptiste Kempf
Winstore: allow SetThreadPriority call
This mandates 8.1 though
(cherry picked from commit daaa3c659102b9bdff731e632fa42eefde268fd0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=ad137637c2fae39eeae0b266ea61df58dc216afd
---
 src/win32/thread.c |    4 ----
 1 file changed, 4 deletions(-)
diff --git a/src/win32/thread.c b/src/win32/thread.c
index 08f4295..2447adf 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -514,10 +514,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;
 }
@@ -552,10 +550,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;
 }
 
    
    
More information about the vlc-commits
mailing list