浏览代码

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);
 }