Merge commit 'eb90a2091f'
* commit 'eb90a2091f':
pthread: Fix deadlock during thread initialization
Conflicts:
libavcodec/pthread.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
005200887b
1 changed files with 2 additions and 1 deletions
|
|
@ -75,7 +75,8 @@ static void* attribute_align_arg worker(void *v)
|
|||
if (c->current_job == nb_threads + c->nb_jobs)
|
||||
pthread_cond_signal(&c->last_job_cond);
|
||||
|
||||
pthread_cond_wait(&c->current_job_cond, &c->current_job_lock);
|
||||
if (!c->done)
|
||||
pthread_cond_wait(&c->current_job_cond, &c->current_job_lock);
|
||||
our_job = self_id;
|
||||
|
||||
if (c->done) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue