Commit 00520088 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'eb90a209'

* commit 'eb90a209':
  pthread: Fix deadlock during thread initialization

Conflicts:
	libavcodec/pthread.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 5340c3dd eb90a209
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment