summaryrefslogtreecommitdiff
path: root/libavutil/atomic.c
Commit message (Collapse)AuthorAge
* It has been replaced by C11 stdatomic.h and is now unused.Anton Khirnov2018-01-05
| | | | | (cherry picked from commit 5cc0057f4910c8c72421b812c8f337ef6c43696c) Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-11
|\ | | | | | | | | | | | | | | * commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * 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.
* | avutil/atomic: reuse ret to avoid dereferencing twice the same value.Clément Bœsch2014-12-27
| |
* | Merge commit '874c751cc5b99cd68932e21c2c3a0d21134207e0'Michael Niedermayer2014-02-19
|\| | | | | | | | | | | | | * commit '874c751cc5b99cd68932e21c2c3a0d21134207e0': threads: Check w32threads dependencies at the configure stage Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-12-20
|\| | | | | | | | | | | | | * qatar/master: atomics: cosmetics: Restructure ifdefs for greater clarity Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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.
* | Merge commit 'f9f6402e9c9ce3642df981b48507df3a2d956f65'Michael Niedermayer2013-04-03
|\| | | | | | | | | | | | | | | | | | | * commit 'f9f6402e9c9ce3642df981b48507df3a2d956f65': configure: prettify atomics handling. Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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>
* | avutil/atomic: use av_assert0()Michael Niedermayer2013-03-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronizeMartin Storsjö2013-03-12
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge commit '65f1d45dcc71186ede72fff950996099d23359bd'Michael Niedermayer2013-03-08
|/ | | | | | | | | | * commit '65f1d45dcc71186ede72fff950996099d23359bd': lavu: add support for atomic operations. Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
* 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>