[vlc-commits] commit: Atom: use volatile keyword ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Tue Jun 29 16:29:02 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun 29 17:24:15 2010 +0300| [85a9ea3bac5bd026836c3e6bad37c42f1161fca7] | committer: Rémi Denis-Courmont
Atom: use volatile keyword
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85a9ea3bac5bd026836c3e6bad37c42f1161fca7
---
include/vlc_atomic.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h
index 2b0ff88..9370fbc 100644
--- a/include/vlc_atomic.h
+++ b/include/vlc_atomic.h
@@ -31,8 +31,8 @@
*/
typedef union
{
- uintptr_t u;
- intptr_t s;
+ volatile uintptr_t u;
+ volatile intptr_t s;
} vlc_atomic_t;
/* All functions return the atom value _after_ the operation. */
More information about the vlc-commits
mailing list