Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-26avutil/thread: fix strict_pthread_cond_timedwaitMarton Balint
Timeout error was assumed to be fatal which it is not. Signed-off-by: Marton Balint <cus@passwd.hu>
2020-01-22avutil/thread: Add pthread_cond_timedwait functionMatt Oliver
v2: fix calculating milisecond times and use SleepConditionVariableSRW. Signed-off-by: Matt Oliver <protogonoi@gmail.com>
2017-12-26lavc: replace and deprecate the lock managerwm4
Use static mutexes instead of requiring a lock manager. The behavior should be roughly the same before and after this change for API users which did not set the lock manager at all (except that a minor memory leak disappears).
2017-10-26Merge commit '193b09189004ede4a6998e69192d1a9f63602088'James Almer
* commit '193b09189004ede4a6998e69192d1a9f63602088': thread: Define ff_mutex_* macros as stub functions when threads are disabled Merged-by: James Almer <jamrial@gmail.com>
2017-04-23libavutil/thread.h: Fixed g++ build error when ASSERT_LEVEL is greater than 1Aaron Levinson
Purpose: libavutil/thread.h: Fixed g++ build error when ASSERT_LEVEL is greater than 1. This is only relevant when thread.h is included by C++ files. In this case, the relevant code is only defined if HAVE_PTHREADS is defined as 1. Use configure --assert-level=2 to do so. Note: Issue discovered as a result of Coverity build failure. Cause of build failure pinpointed by Hendrik Leppkes. Comments: -- libavutil/thread.h: Altered ASSERT_PTHREAD_NORET definition such that it uses av_make_error_string instead of av_err2str(). av_err2str() uses a "parenthesized type followed by an initializer list", which is apparently not valid C++. This issue started occurring because thread.h is now included by the DeckLink C++ files. The alteration does the equivalent of what av_err2str() does, but instead declares the character buffer as a local variable. Signed-off-by: Marton Balint <cus@passwd.hu>
2017-04-12thread: Define ff_mutex_* macros as stub functions when threads are disabledDiego Biurrun
Silences a bunch of "statement with no effect" warnings with threads disabled.
2017-03-22lavu/buffer: drop USE_ATOMICSClément Bœsch
USE_ATOMICS is only set if there is no thread implementation enabled, in which case you can't expect any lock mechanism from FFmpeg. This is also conflicting with the incoming use of stdatomic.
2016-01-20lavu: add pthread asserts if ASSERT_LEVEL>1Clément Bœsch
2015-10-15Merge commit 'c53e796f8b69799b7ad6d28fbab981d37edf1bc9'Hendrik Leppkes
* commit 'c53e796f8b69799b7ad6d28fbab981d37edf1bc9': thread: Provide no-op variants for pthread_once Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-10-14thread: Provide no-op variants for pthread_onceLuca Barbato
2014-12-14thread: use "" instead of <> for including the w32pthreads wrapperAnton Khirnov
Found-by: Dave Yeo <dave.r.yeo@gmail.com>
2014-11-29avutil/buffer: Move USE_ATOMICS to thread.h to avoid it becoming out of sync ↵Michael Niedermayer
with it Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-11-29libavutil/threads.h: correct an include to be localDave Yeo
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-11-29libavutil/thread.h: Support OS/2 threadsDave Yeo
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-11-28Merge commit '2443e522f0059176ff8717c9c753eb6fe7e7bbf1'Michael Niedermayer
* commit '2443e522f0059176ff8717c9c753eb6fe7e7bbf1': lavu: add wrappers for the pthreads mutex API Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-11-27lavu: add wrappers for the pthreads mutex APIAnton Khirnov
Also add no-op fallbacks when threading is disabled. This helps keeping the code clean if Libav is compiled for targets without threading. Since we assume that no threads of any kind are used in such configurations, doing nothing is ok by definition. Based on a patch by wm4 <nfxjfg@googlemail.com>.