소스 검색

followup to 14220: do not join the thread either when STARPU_WATCHDOG_TIMEOU is not set

Samuel Thibault 10 년 전
부모
커밋
cbe9542ca2
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/core/task.c

+ 5 - 0
src/core/task.c

@@ -1174,5 +1174,10 @@ void _starpu_watchdog_init(void)
 
 void _starpu_watchdog_shutdown(void)
 {
+	char *timeout_env = getenv("STARPU_WATCHDOG_TIMEOUT");
+
+	if (!timeout_env)
+		return;
+
 	starpu_pthread_join(watchdog_thread, NULL);
 }