aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegaudio_parser.c
diff options
context:
space:
mode:
authorBen Jackson <ben@ben.com>2012-09-13 21:26:43 -0700
committerMichael Niedermayer <michaelni@gmx.at>2012-09-19 01:08:24 +0200
commite2c7b37fd225d9e41c913bd21a5b481c78a11019 (patch)
tree170e972a4c56228c904501053edc7d2c669b3902 /libavcodec/mpegaudio_parser.c
parent7f90fe1b4b8ba6ac007094983f88668f6319ee50 (diff)
downloadffmpeg-e2c7b37fd225d9e41c913bd21a5b481c78a11019.tar.gz
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> (cherry picked from commit e3329474a366de066b25e86f35f5abf9c5a4b7b2) Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit f1ec792ae3011531d47070144b8c91d58bb3e76f) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegaudio_parser.c')
0 files changed, 0 insertions, 0 deletions