aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/error.h
diff options
context:
space:
mode:
authorBen Jackson <ben@ben.com>2013-10-18 15:28:50 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-10-21 15:28:03 +0200
commit5152196b2b47d446d9a509b9bfb318daa26a1f2b (patch)
tree62660b8a05cf3cd2b91188495dfed72045490e52 /libavutil/error.h
parent23e6d3d4e27c83e06d00aa072c84d057bd1dad23 (diff)
downloadffmpeg-5152196b2b47d446d9a509b9bfb318daa26a1f2b.tar.gz
pthread: Avoid spurious wakeups
pthread_wait_cond can wake up unexpectedly (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. Test both cases to ensure the wakeup is real. Signed-off-by: Ben Jackson <ben@ben.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavutil/error.h')
0 files changed, 0 insertions, 0 deletions