aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/atomic.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'f9f6402e9c9ce3642df981b48507df3a2d956f65'Michael Niedermayer2013-04-031-1/+1
|\ | | | | | | | | | | | | | | | | | | * commit 'f9f6402e9c9ce3642df981b48507df3a2d956f65': configure: prettify atomics handling. Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * configure: prettify atomics handling.Anton Khirnov2013-04-031-1/+1
| | | | | | | | | | 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-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-201-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronizeMartin Storsjö2013-03-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-081-4/+4
|/ | | | | | | | | | * 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-081-0/+123
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>