Commit 559e1473 authored by Geoffroy Couprie's avatar Geoffroy Couprie

WinCE: missing threading functions

parent aafc08e4
......@@ -356,7 +356,12 @@ typedef CRITICAL_SECTION vlc_spinlock_t;
*/
static inline int vlc_spin_init (vlc_spinlock_t *spin)
{
#ifdef UNDER_CE
InitializeCriticalSection(spin);
return 0;
#else
return !InitializeCriticalSectionAndSpinCount(spin, 4000);
#endif
}
/**
......
......@@ -1061,6 +1061,8 @@ void vlc_control_cancel (int cmd, ...)
#endif
#if defined (LIBVLC_USE_PTHREAD)
pthread_exit (PTHREAD_CANCELLED);
#elif defined (UNDER_CE)
ExitThread(0);
#elif defined (WIN32)
_endthread ();
#else
......
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