Skip to content

Commit 635c9e4

Browse files
authored
Restore initializers for mutex and conditional
1 parent 43c2e84 commit 635c9e4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

driver/others/blas_server.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,9 @@ int blas_thread_init(void){
571571
atomic_store_queue(&thread_status[i].queue, (blas_queue_t *)0);
572572
thread_status[i].status = THREAD_STATUS_WAKEUP;
573573

574+
pthread_mutex_init(&thread_status[i].lock, NULL);
575+
pthread_cond_init (&thread_status[i].wakeup, NULL)
576+
574577
#ifdef NEED_STACKATTR
575578
ret=pthread_create(&blas_threads[i], &attr,
576579
&blas_thread_server, (void *)i);

0 commit comments

Comments
 (0)