소스 검색

tests/core/execute_on_a_specific_worker.c: initialize mutex and cond variables

Nathalie Furmento 14 년 전
부모
커밋
848a14302c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tests/core/execute_on_a_specific_worker.c

+ 2 - 2
tests/core/execute_on_a_specific_worker.c

@@ -26,8 +26,8 @@
 
 #define VECTORSIZE	1024
 
-static pthread_mutex_t mutex;
-static pthread_cond_t cond;
+static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+static pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
 
 static unsigned finished = 0;