Browse Source

Restore initializers for mutex and conditional

tags/v0.3.10^2
Martin Kroeker GitHub 6 years ago
parent
commit
635c9e4e09
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      driver/others/blas_server.c

+ 3
- 0
driver/others/blas_server.c View File

@@ -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…
Cancel
Save