[vlc-devel] commit: WinCE does not support spin locks ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu May 21 19:19:29 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 21 20:03:19 2009 +0300| [7108136d1d17f0bc75e6089ae8b4898ab76fe628] | committer: Rémi Denis-Courmont
WinCE does not support spin locks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7108136d1d17f0bc75e6089ae8b4898ab76fe628
---
include/vlc_threads.h | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 52da2b2..5ba9526 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
}
/**
More information about the vlc-devel
mailing list