Просмотр исходного кода

properly fix nanosleep in watchdog

Samuel Thibault лет назад: 12
Родитель
Сommit
a1d45bbbb4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/task.c

+ 1 - 1
src/core/task.c

@@ -1016,7 +1016,7 @@ static starpu_pthread_t watchdog_thread;
 /* Check from times to times that StarPU does finish some tasks */
 /* Check from times to times that StarPU does finish some tasks */
 static void *watchdog_func(void *foo STARPU_ATTRIBUTE_UNUSED)
 static void *watchdog_func(void *foo STARPU_ATTRIBUTE_UNUSED)
 {
 {
-	struct timespec ts, rem;
+	struct timespec ts, req, rem;
 	char *timeout_env;
 	char *timeout_env;
 	unsigned long long timeout;
 	unsigned long long timeout;