diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-12-18 22:29:25 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-02-19 15:12:37 +0100 |
commit | 874c751cc5b99cd68932e21c2c3a0d21134207e0 (patch) | |
tree | 12e3634d4be09598bc1a9f9d13e095924b7371e6 /libavutil/atomic.c | |
parent | 35b05c5184fb3aa1191e2d1e7f1cae1e11f344a4 (diff) | |
download | ffmpeg-874c751cc5b99cd68932e21c2c3a0d21134207e0.tar.gz |
threads: Check w32threads dependencies at the configure stage
Also add warning comment about threading implementations without matching
atomics implementation to the atomics fallback implementation.
Diffstat (limited to 'libavutil/atomic.c')
-rw-r--r-- | libavutil/atomic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/atomic.c b/libavutil/atomic.c index e4fa957ba4..83740396d4 100644 --- a/libavutil/atomic.c +++ b/libavutil/atomic.c @@ -97,8 +97,11 @@ void *avpriv_atomic_ptr_cas(void * volatile *ptr, void *oldval, void *newval) return *ptr; } -#else +#else /* HAVE_THREADS */ +/* This should never trigger, unless a new threading implementation + * without correct atomics dependencies in configure or a corresponding + * atomics implementation is added. */ #error "Threading is enabled, but there is no implementation of atomic operations available" #endif /* HAVE_PTHREADS */ |