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,6 +75,7 @@ static void* attribute_align_arg worker(void *v) ...@@ -75,6 +75,7 @@ static void* attribute_align_arg worker(void *v)
if (c->current_job == nb_threads + c->nb_jobs) if (c->current_job == nb_threads + c->nb_jobs)
pthread_cond_signal(&c->last_job_cond); pthread_cond_signal(&c->last_job_cond);
if (!c->done)
pthread_cond_wait(&c->current_job_cond, &c->current_job_lock); pthread_cond_wait(&c->current_job_cond, &c->current_job_lock);
our_job = self_id; our_job = self_id;
......
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