summaryrefslogtreecommitdiff
path: root/libavfilter/pthread.c
Commit message (Collapse)AuthorAge
* avutil/internal, swresample/audioconvert: Remove cpu.h inclusionsAndreas Rheinhardt2021-07-22
| | | | | | | | | | These inclusions are not necessary, as cpu.h is already included wherever it is needed (via direct inclusion or via the arch-specific headers). Also remove other unnecessary cpu.h inclusions from ordinary non-headers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* w32pthreads: always use Vista+ API, drop XP supportwm42017-12-26
| | | | | | | | | | | This removes the XP compatibility code, and switches entirely to SWR locks, which are available starting at Windows Vista. This removes CRITICAL_SECTION use, which allows us to add PTHREAD_MUTEX_INITIALIZER, which will be useful later. Windows XP is hereby not a supported build target anymore. It was decided in a project vote that this is OK.
* avfilter/pthread: use slice threading from avutilMuhammad Faiz2017-07-19
| | | | | | | | | | | | | | | | | Benchmark (with 2 cpus): ./ffmpeg -f rawvideo -s 1280x720 -t 1000 -i /dev/zero \ -filter_threads $threads -vf transpose=clock -f null null threads=2: old: 31.129s 31.446s 31.574s new: 29.602s 29.636s 29.656s threads=3 (nb_threads = nb_cpus + 1 is bad choice at this situation): old: 40.132s 40.279s 40.279s new: 39.308s 39.570s 39.693s threads=4: old: 31.306s 31.366s 31.654s new: 30.231s 30.360s 30.451s Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* lavfi: fix race when func rets holder is NULLClément Bœsch2017-03-28
| | | | | | | If ret is NULL, a dummy common holder is created to hold *all* the parallel function returns, which gets written concurrently. This commit simplify the whole logic by simply not writing to that holder when not set.
* Merge commit '29c2d06d67724e994980045afa055c6c34611b30'Derek Buitenhuis2016-02-24
|\ | | | | | | | | | | | | * commit '29c2d06d67724e994980045afa055c6c34611b30': cosmetics: Drop empty comment lines Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * cosmetics: Drop empty comment linesDiego Biurrun2016-02-18
| |
| * pthread: Avoid crashes/odd behavior caused by spurious wakeupsDerek Buitenhuis2013-10-22
| | | | | | | | | | | | This is similar to 5152196b2b47d446d9a509b9bfb318daa26a1f2b. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | lavfi/pthread: fix perameters/parameters typoClément Bœsch2016-01-24
| |
* | lavc,lavfi: use avutil/thread.h instead of redundant conditional includesClément Bœsch2016-01-20
| | | | | | | | This was somehow forgotten in a8bb81a05c519dd3f36cc341e5fb448f6d17fa73.
* | avfilter/pthread: Use av_mallocz_array()Michael Niedermayer2014-04-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavfi/pthread: Avoid crashes/odd behavior caused by spurious wakeupsDerek Buitenhuis2013-10-22
| | | | | | | | | | | | This is similar to 5152196b2b47d446d9a509b9bfb318daa26a1f2b. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge commit 'eb90a2091ffb94d8c29aaa5ff50f4192520254fc'Michael Niedermayer2013-10-14
|\| | | | | | | | | | | | | | | | | | | * commit 'eb90a2091ffb94d8c29aaa5ff50f4192520254fc': pthread: Fix deadlock during thread initialization Conflicts: libavcodec/pthread.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pthread: Fix deadlock during thread initializationDerek Buitenhuis2013-10-13
| | | | | | | | | | | | | | | | | | | | Sometimes, if pthread_create() failed, then pthread_cond_wait() could accidentally be called in the worker threads after the uninit function had already called pthread_cond_broadcast(), leading to a deadlock. Don't call pthread_cond_wait() if c->done is set. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-09-28
|\| | | | | | | | | | | | | | | | | | | | | * qatar/master: lavfi: allow user-provided execute() callbacks Conflicts: libavfilter/avfilter.h libavfilter/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavfi: allow user-provided execute() callbacksAnton Khirnov2013-09-28
| |
* | Merge commit '50612484e058e8b241f0528584d64d9d2ccebf12'Michael Niedermayer2013-07-17
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '50612484e058e8b241f0528584d64d9d2ccebf12': pthread: Rename thread_init to avoid symbol collision Conflicts: libavcodec/pthread.c libavfilter/pthread.c See: 674d8a9629609a17fd6916164556cb012d6e6a1c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pthread: Rename thread_init to avoid symbol collisionSean McGovern2013-07-17
| | | | | | | | | | | | The AIX threads library exposes a function with the same name. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Rename thread_init() in libavcodec and libavfilter as library_thread_init().Carl Eugen Hoyos2013-06-30
| | | | | | | | The aix header sys/thread.h contains a definition for thread_init().
* | os2threads: move from lavc to compat/Dave Yeo2013-05-28
| | | | | | | | | | | | | | For useage in other places besides lavc. Needed after commit 90f9a5830b5d332de7ebb1ab45589f1870cbd65d Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_cpu_count: factorize "detected %d logical cores" messageMichael Niedermayer2013-05-26
| | | | | | | | | | | | Also print the message just once Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '129bb238430ec45a3b5f8f1d384df590ddf7b62f'Michael Niedermayer2013-05-24
|/ | | | | | | | | | | | | | | | | | * commit '129bb238430ec45a3b5f8f1d384df590ddf7b62f': lavfi: add a slice threading infrastructure Conflicts: Changelog cmdutils.c doc/APIchanges libavfilter/Makefile libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/avfiltergraph.c libavfilter/internal.h libavfilter/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi: add a slice threading infrastructureAnton Khirnov2013-05-24
Mostly based on libavcodec's