mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
d27a2bc546
Not all compilers on all platforms have atomics available (even if they could, technically speaking). We don't use atomics that much, only the following things rely on it: 1. the audio pull code, and all audio outputs using it 2. updating global msg levels 3. reading log messages through the client API Just disable 1. and 3. if atomics are not available. For 2., using fake- atomics isn't too bad; at worst, message levels won't properly update under certain situations (but most likely, it will work just fine). This means if atomics are not available, the client API function mpv_request_log_messages() will do nothing. CC: @mpv-player/stable |
||
---|---|---|
.. | ||
atomics.h | ||
compiler.h | ||
libav.h | ||
mpbswap.h |