Commit 08f5c9de authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

vlc_threads: Use OSMemoryBarrier() on Mac OS X cause __sync_synchronize() doesn't seems present.

parent c792a6fd
......@@ -564,7 +564,9 @@ static inline int vlc_spin_init (vlc_spinlock_t *spin)
*/
static inline void barrier (void)
{
#if defined (__GNUC__) /* FIXME: || defined (ICC_whatever) */
#if defined (__APPLE__)
OSMemoryBarrier();
#elif defined (__GNUC__) /* FIXME: || defined (ICC_whatever) */
__sync_synchronize ();
#elif defined (LIBVLC_USE_PTHREAD)
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
......
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