summaryrefslogtreecommitdiff
path: root/libavutil/atomic.c
Commit message (Collapse)AuthorAge
* 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>