Changeset eb90a209 in ffmpeg

Timestamp:
Oct 13, 2013, 9:50:00 AM (11 years ago)
Author:
Derek Buitenhuis <derek.buitenhuis@gmail.com>
Branches:
master
Children:
00520088, eb8b05a3
Parents:
c9ef6b09
git-author:
Derek Buitenhuis <derek.buitenhuis@gmail.com> (10/10/13 15:05:40)
git-committer:
Derek Buitenhuis <derek.buitenhuis@gmail.com> (10/13/13 09:50:00)
Message:

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>

(No files)

Note: See TracChangeset for help on using the changeset viewer.