Commit ad137637 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Winstore: allow SetThreadPriority call

This mandates 8.1 though

(cherry picked from commit daaa3c659102b9bdff731e632fa42eefde268fd0)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 94df30dc
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment