From 7108136d1d17f0bc75e6089ae8b4898ab76fe628 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 21 May 2009 20:03:19 +0300 Subject: [PATCH] WinCE does not support spin locks --- include/vlc_threads.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/vlc_threads.h b/include/vlc_threads.h index 52da2b2840..5ba95265c4 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -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 } /** -- 2.39.5