Commit 7108136d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

WinCE does not support spin locks

parent 191b7a9f
......@@ -271,7 +271,7 @@ static inline void vlc_spin_destroy (vlc_spinlock_t *spin)
pthread_spin_destroy (spin);
}
#elif defined( WIN32 )
#elif defined (WIN32) && !defined (UNDER_CE)
typedef CRITICAL_SECTION vlc_spinlock_t;
......@@ -280,12 +280,7 @@ 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
}
/**
......
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