diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2013-10-10 11:05:40 -0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-01-07 09:43:58 +0100 |
commit | 48d57650f121d3d9e977832e9006bb334337d921 (patch) | |
tree | 66f86d155bdf330c3800d14ef4c63de6527d8e1d /libavcodec/sparc/dsputil_vis.c | |
parent | 371659d1ad71cac41732c5d9d7a32ee1cf173c95 (diff) | |
download | ffmpeg-48d57650f121d3d9e977832e9006bb334337d921.tar.gz |
pthread: Fix deadlock during thread initialization
Sometimes, if pthread_create() failed, then pthread_cond_wait() could
accidentally be called in the worker threads after the uninit function
had already called pthread_cond_broadcast(), leading to a deadlock.
Don't call pthread_cond_wait() if c->done is set.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
(cherry picked from commit 1a5a6ac01b0ad2cf3d2128372ea41f3c1cfc2d3f)
Diffstat (limited to 'libavcodec/sparc/dsputil_vis.c')
0 files changed, 0 insertions, 0 deletions