summaryrefslogtreecommitdiff
path: root/libavutil/atomic.h
Commit message (Collapse)AuthorAge
* 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: prefer gcc builtins over win32 atomics, if available.Hendrik Leppkes2013-03-11
| | | | | | | The mingw win32 atomics appear to be faulty, so they should not be used if the gcc ones are available. Signed-off-by: Martin Storsjö <martin@martin.st>
* 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>