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
diff options
context:
space:
mode:
authorBen Jackson <ben@ben.com>2012-09-14 08:26:43 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-09-14 08:36:55 +0400
commite3329474a366de066b25e86f35f5abf9c5a4b7b2 (patch)
treec66cf53aba6fad7e79590db86dcd8e92c2b35c7a /ffprobe.c
parent93b240f4a59348c07d3d7e4862227f6949c51e14 (diff)
pthread: Avoid crashes/odd behavior caused by spurious wakeups
pthread_wait_cond can wake up for no reason (Wikipedia: Spurious_wakeup). The FF_THREAD_SLICE thread mechanism could spontaneously execute jobs or allow the caller of avctx->execute to return before all jobs were complete. This adds tests to both cases to ensure the wakeup is real. Signed-off-by: Ben Jackson <ben@ben.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
0 files changed, 0 insertions, 0 deletions