diff options
author | wm4 <wm4@nowhere> | 2015-05-11 23:27:41 +0200 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-05-15 10:30:03 +0900 |
commit | 328d0c7fc326abce5fc1783e74cdd082c87d4986 (patch) | |
tree | fcba26b52485c449dec8d4096d95d608adaf2ac0 /osdep | |
parent | 26409165edbb60a1b2b5eb7f8784a93746f178f6 (diff) | |
download | mpv-328d0c7fc326abce5fc1783e74cdd082c87d4986.tar.bz2 mpv-328d0c7fc326abce5fc1783e74cdd082c87d4986.tar.xz |
ao: make better use of atomics
The main reason for this was compatibility; but some associated problems
have been solved in the previous commit.
(cherry picked from commit ca9964a4fb6b1faa0155da43b3c815db0075e2d5)
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/atomics.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/atomics.h b/osdep/atomics.h index 6997ba97b2..e0bef8a879 100644 --- a/osdep/atomics.h +++ b/osdep/atomics.h @@ -34,6 +34,7 @@ typedef struct { volatile unsigned long v, t; } atomic_ulong; typedef struct { volatile int v, t; } atomic_int; +typedef struct { volatile unsigned int v, t; } atomic_uint; typedef struct { volatile _Bool v, t; } atomic_bool; typedef struct { volatile long long v, t; } atomic_llong; typedef struct { volatile uint_least32_t v, t; } atomic_uint_least32_t; |