[vlc-devel] commit: vlc_threads: Include OSAtomic.h for OSMemoryBarrier(). (Pierre d' Herbemont )

git version control git at videolan.org
Sat Jul 5 14:25:37 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jul  5 14:27:46 2008 +0200| [af4010a87619257bd0e5540b2ea88fb5e21021fc]

vlc_threads: Include OSAtomic.h for OSMemoryBarrier().

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=af4010a87619257bd0e5540b2ea88fb5e21021fc
---

 include/vlc_threads.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index a491daa..a31f004 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -562,6 +562,9 @@ static inline int vlc_spin_init (vlc_spinlock_t *spin)
 /**
  * Issues a full memory barrier.
  */
+#if defined (__APPLE__)
+# include <libkern/OSAtomic.h> /* OSMemoryBarrier() */
+#endif
 static inline void barrier (void)
 {
 #if defined (__APPLE__)




More information about the vlc-devel mailing list