소스 검색

minor fix to avoid spurious condition variable awaking

Cédric Augonnet 15 년 전
부모
커밋
7c7752e348
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/microbenchs/async_tasks_overhead.c

+ 1 - 1
tests/microbenchs/async_tasks_overhead.c

@@ -147,7 +147,7 @@ int main(int argc, char **argv)
 	}
 
 	pthread_mutex_lock(&mutex);
-	if (!finished)
+	while (!finished)
 		pthread_cond_wait(&cond, &mutex);
 	pthread_mutex_unlock(&mutex);