diff options
author | Ben Jackson <ben@ben.com> | 2013-10-18 15:28:50 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-01-07 09:43:58 +0100 |
commit | 1123870879835be0948a184dfe5d71b48eb07240 (patch) | |
tree | 632a95a68cdd841c65f9e7af562b6345dfcde6f0 /libavcodec/dvdata.c | |
parent | 48d57650f121d3d9e977832e9006bb334337d921 (diff) | |
download | ffmpeg-1123870879835be0948a184dfe5d71b48eb07240.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>
(cherry picked from commit 311583e7798237be5cc531d672a9e37f8c729d83)
Diffstat (limited to 'libavcodec/dvdata.c')
0 files changed, 0 insertions, 0 deletions