diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-22 17:31:15 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-22 17:40:03 +0100 |
commit | 67d8eabdbb29efb66c9d813635732c9d6aa5c437 (patch) | |
tree | 84ab2bedfdc8527bc018c27cf6bb83a12dea9f5a /libavutil/thread.h | |
parent | f015711ed1244fe8c09fd470262b57dfce6a2dbf (diff) | |
download | ffmpeg-67d8eabdbb29efb66c9d813635732c9d6aa5c437.tar.gz |
lavu/buffer: drop USE_ATOMICS
USE_ATOMICS is only set if there is no thread implementation enabled, in
which case you can't expect any lock mechanism from FFmpeg.
This is also conflicting with the incoming use of stdatomic.
Diffstat (limited to 'libavutil/thread.h')
-rw-r--r-- | libavutil/thread.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavutil/thread.h b/libavutil/thread.h index 32ddf40365..6e5744736b 100644 --- a/libavutil/thread.h +++ b/libavutil/thread.h @@ -26,8 +26,6 @@ #if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS -#define USE_ATOMICS 0 - #if HAVE_PTHREADS #include <pthread.h> @@ -146,8 +144,6 @@ static inline int strict_pthread_once(pthread_once_t *once_control, void (*init_ #else -#define USE_ATOMICS 1 - #define AVMutex char #define ff_mutex_init(mutex, attr) (0) |