Explorar o código

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

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
cbe9542ca2
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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);
 }