diff options
author | Ben Jackson <ben@ben.com> | 2013-10-18 15:28:50 +0100 |
---|---|---|
committer | Sean McGovern <gseanmcg@gmail.com> | 2013-10-21 12:25:26 -0400 |
commit | 311583e7798237be5cc531d672a9e37f8c729d83 (patch) | |
tree | 81930e2e722a89e2693a43d0cd94fb2075f598ae /libavcodec/mpeg4video_parser.c | |
parent | 1a5a6ac01b0ad2cf3d2128372ea41f3c1cfc2d3f (diff) | |
download | ffmpeg-311583e7798237be5cc531d672a9e37f8c729d83.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 'libavcodec/mpeg4video_parser.c')
0 files changed, 0 insertions, 0 deletions