diff options
author | wm4 <wm4@nowhere> | 2015-03-02 19:09:31 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-02 19:09:31 +0100 |
commit | 01b87e509c292189acdd96bc7a216b50eafbce9e (patch) | |
tree | 16ece6a69e7d2a367775c9d642e51ef302cb3981 /osdep/atomics.h | |
parent | 445b3fbf826dd074b1f2a34cddcd3f126462f0d1 (diff) | |
download | mpv-01b87e509c292189acdd96bc7a216b50eafbce9e.tar.bz2 mpv-01b87e509c292189acdd96bc7a216b50eafbce9e.tar.xz |
msg: use relaxed atomics for log level test
This should be sufficient.
If stdatomic.h is not available, we make no difference.
Diffstat (limited to 'osdep/atomics.h')
-rw-r--r-- | osdep/atomics.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/osdep/atomics.h b/osdep/atomics.h index 39c741acd7..8431211476 100644 --- a/osdep/atomics.h +++ b/osdep/atomics.h @@ -41,6 +41,11 @@ typedef struct { volatile unsigned long long v; } atomic_ullong; #define ATOMIC_VAR_INIT(x) \ {.v = (x)} +#define memory_order_relaxed 1 +#define memory_order_seq_cst 2 + +#define atomic_load_explicit(p, e) atomic_load(p) + #if HAVE_ATOMIC_BUILTINS #define atomic_load(p) \ |