Ben Jackson 311583e779 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>
2013-10-21 12:25:26 -04:00
2012-10-23 12:01:18 +01:00
2012-12-21 00:18:34 +01:00
2012-12-18 20:14:54 +01:00
2013-10-10 09:56:40 -04:00
2012-12-10 17:23:53 +00:00
2011-03-16 21:54:39 +01:00
2011-04-07 02:54:12 +02:00
2012-12-10 17:23:53 +00:00
2012-12-10 17:23:53 +00:00
2013-10-04 19:14:27 -04:00

Libav README
------------

1) Documentation
----------------

* Read the documentation in the doc/ directory.

2) Licensing
------------

* See the LICENSE file.
Description
No description provided
Readme 173 MiB
Languages
C 92.1%
Assembly 6%
Makefile 1.2%
C++ 0.3%
Objective-C 0.2%
Other 0.1%