]> git.sesse.net Git - vlc/commit
Win32 threads: remove functions forbidden on Windows Store
authorRafaël Carré <funman@videolan.org>
Thu, 15 Aug 2013 08:56:38 +0000 (10:56 +0200)
committerRafaël Carré <funman@videolan.org>
Sat, 19 Oct 2013 09:41:00 +0000 (11:41 +0200)
commita15007765e348d3bbd0ee65350c737d6dc6ff63e
tree277c758c981e9e9a6c59db5a692e881dccfc9925
parent6220fd4ab0055ae0f2925c49499139f3ea80bec3
Win32 threads: remove functions forbidden on Windows Store

Do not create a suspended thread so ResumeThread becomes unnecessary.
Busy loop over thread handle if by misfortune the thread ends before
_beginthreadex has returned.

Do not use SetThreadPriority on Windows Store.

Set the cancelled thread bit outside of the APC procedure.
APC is still used to wake up the cancelled thread when it is in an alertable state
(SleepEx or WaitForMultipleObjectsEx).
Since QueueUserAPC is forbidden on Windows Store we check the cancelled state every
50 ms.
src/win32/thread.c