[FFmpeg-devel] [PATCH] pthread: Avoid crashes/odd behavior caused by spurious wakeups

Michael Niedermayer michaelni at gmx.at
Fri Sep 14 06:42:47 CEST 2012

On Thu, Sep 13, 2012 at 09:26:43PM -0700, Ben Jackson wrote:
> 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 at ben.com>



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120914/eaa4d8e9/attachment.asc>

More information about the ffmpeg-devel mailing list