summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-21 19:54:21 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commit0317d7350ea247c04472c82f925a0bc065959ef6 (patch)
tree02df0848b560ef9fafc1898acdc0685d1a9fe270 /player/command.c
parent1a86bb59dfdc68baf0075a14c13a63c219adc08d (diff)
downloadmpv-0317d7350ea247c04472c82f925a0bc065959ef6.tar.bz2
mpv-0317d7350ea247c04472c82f925a0bc065959ef6.tar.xz
m_config: fix build with emulated stdatomic
C11 can access atomic variables normally (in which case they use the strictest memory access semantics). But the mpv stdatomic wrapper for C99 compilers does not allow it, because it couldn't give any guarantees. This means we always need to access them with atomic macros. While we're at, use relaxed semantics for the m_config_cache field, since because it's accessed from a single thread only (essentially used in a non-atomic way). Switch the comparison arguments to make the formatting look slightly less weird.
Diffstat (limited to 'player/command.c')
0 files changed, 0 insertions, 0 deletions