lavu: add support for atomic operations.
authorRonald S. Bultje <rsbultje@gmail.com>
Sun, 2 Dec 2012 22:34:50 +0000 (14:34 -0800)
committerAnton Khirnov <anton@khirnov.net>
Fri, 8 Mar 2013 06:32:36 +0000 (07:32 +0100)
commit65f1d45dcc71186ede72fff950996099d23359bd
tree6abb05fb0478c14c82dfc60262e05d50acda5287
parenteae0879d961b78717dd2a0899809ad22819ae9e3
lavu: add support for atomic operations.

These could be used for reference counting, or for keeping track of
decoding progress in references in multithreaded decoders.

Support is provided by gcc/msvc/suncc intrinsics, with a fallback using
pthread mutexes.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
configure
libavutil/Makefile
libavutil/atomic.c [new file with mode: 0644]
libavutil/atomic.h [new file with mode: 0644]
libavutil/atomic_gcc.h [new file with mode: 0644]
libavutil/atomic_suncc.h [new file with mode: 0644]
libavutil/atomic_win32.h [new file with mode: 0644]
tests/fate/libavutil.mak