summaryrefslogtreecommitdiff
path: root/libavutil/atomic.c
Commit message (Collapse)AuthorAge
* build: Split test programs off into separate filesDiego Biurrun2016-04-07
| | | | | This avoids spurious library rebuilds when only the test program code is changed and simplifies the build system.
* threads: Check w32threads dependencies at the configure stageDiego Biurrun2014-02-19
| | | | | Also add warning comment about threading implementations without matching atomics implementation to the atomics fallback implementation.
* atomics: cosmetics: Restructure ifdefs for greater clarityDiego Biurrun2013-12-20
| | | | | Also fix the #endif comment in a few places and #include config.h to avoid assuming it is #included implicitly.
* configure: prettify atomics handling.Anton Khirnov2013-04-03
| | | | | Add simpler names and a shorthand for native atomics (as opposed to pthreads fallback).
* atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronizeMartin Storsjö2013-03-08
| | | | | | | | | | | | Not all gcc configurations have an implementation of all the atomic operations, and some gcc configurations have some atomic builtins implemented but not all. Thus check for the most essential function, whose presence should indicate that all others are present as well, since it can be used to implement all the other ones. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavu: add support for atomic operations.Ronald S. Bultje2013-03-08
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>