]> git.sesse.net Git - vlc/commitdiff
Move vlc_atomic_t to <vlc_atomic.h> and correct definition
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 13 May 2012 17:06:57 +0000 (20:06 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 13 May 2012 17:28:00 +0000 (20:28 +0300)
include/vlc_atomic.h
include/vlc_common.h
include/vlc_picture.h
modules/gui/qt4/dialogs/messages.cpp
modules/gui/qt4/dialogs/messages.hpp
src/audio_output/aout_internal.h

index 6a1f435c6da473089684ff4ec4ffeaee3821c1fa..051e1ae1e6ecc3e9b9a3b8dbfdb096a73d1c600d 100644 (file)
@@ -203,6 +203,14 @@ bool vlc_atomic_compare_exchange(volatile void *object, void *expected,
 
 # endif
 
+/**
+ * Memory storage space for an atom. Never access it directly.
+ */
+typedef union
+{
+    atomic_uintptr_t u;
+} vlc_atomic_t;
+
 /** Static initializer for \ref vlc_atomic_t */
 # define VLC_ATOMIC_INIT(val) { (val) }
 
index 8ed688315cde41d2fbf6005d4fd20eb6760c8ad3..c04d6f3f24965af411afd7afd484c3d8b48f033e 100644 (file)
@@ -444,15 +444,6 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *,      /* variable's object */
 #include "vlc_mtime.h"
 #include "vlc_threads.h"
 
-/**
- * Memory storage space for an atom. Never access it directly.
- */
-typedef union
-{
-    volatile uintptr_t u;
-    volatile intptr_t  s;
-} vlc_atomic_t;
-
 /*****************************************************************************
  * Common structure members
  *****************************************************************************/
index b58fbed3578725d5a6c90bbfe608f03505ff97f0..5c481f285ff24e405fa9f217aa5e0ebcc23b9428 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include <vlc_es.h>
+#include <vlc_atomic.h>
 
 /** Description of a planar graphic field */
 typedef struct plane_t
index c711ed09f5ad6cf9b41fb5c36275e226310d036c..c494ab222a335924ad13ece77a24edd920c74dfd 100644 (file)
@@ -25,7 +25,6 @@
 #endif
 
 #include "dialogs/messages.hpp"
-#include <vlc_atomic.h>
 
 #include <QTextEdit>
 #include <QTextCursor>
index d8b1157e8607f9bca3ae672bdfb8dc553432cd42..27abd2ddb7fc65e2905703afe1e4cf7c4afec4a9 100644 (file)
@@ -28,6 +28,7 @@
 #include "util/singleton.hpp"
 #include "ui/messages_panel.h"
 #include <stdarg.h>
+#include <vlc_atomic.h>
 
 class QTabWidget;
 class QPushButton;
index e94c0c80bc1950f03fff58812a4435ba0bc0ce94..a5dd25b0586a578b0a5967a8f9a75884abb303cd 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef LIBVLC_AOUT_INTERNAL_H
 # define LIBVLC_AOUT_INTERNAL_H 1
 
+# include <vlc_atomic.h>
+
 /* Max input rate factor (1/4 -> 4) */
 # define AOUT_MAX_INPUT_RATE (4)