commtechs: BUGFIX deadlock in thread init

This commit is contained in:
Thomas Preud'homme 2009-07-07 15:56:20 +02:00 committed by Thomas Preud'homme
parent 60214d62f0
commit c99d8be100
1 changed files with 2 additions and 0 deletions

View File

@ -52,8 +52,10 @@ int init_producer_thread(void)
thread_num = get_thread_number();
if (init_thread_comm(&tcomms[thread_num]))
{
pthread_mutex_lock(&init_lock);
error = 1;
pthread_cond_signal(&init_cond);
pthread_mutex_unlock(&init_lock);
return -1;
}
pthread_mutex_lock(&init_lock);