Restore initializers for mutex and conditional
This commit is contained in:
parent
43c2e845ab
commit
635c9e4e09
|
@ -571,6 +571,9 @@ int blas_thread_init(void){
|
|||
atomic_store_queue(&thread_status[i].queue, (blas_queue_t *)0);
|
||||
thread_status[i].status = THREAD_STATUS_WAKEUP;
|
||||
|
||||
pthread_mutex_init(&thread_status[i].lock, NULL);
|
||||
pthread_cond_init (&thread_status[i].wakeup, NULL)
|
||||
|
||||
#ifdef NEED_STACKATTR
|
||||
ret=pthread_create(&blas_threads[i], &attr,
|
||||
&blas_thread_server, (void *)i);
|
||||
|
|
Loading…
Reference in New Issue