Explorar o código

Drop spurious mutex ulock

Samuel Thibault %!s(int64=8) %!d(string=hai) anos
pai
achega
7dc03d19c3
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      src/core/task.c

+ 0 - 3
src/core/task.c

@@ -1216,11 +1216,8 @@ static void *watchdog_func(void *arg)
 		{
 			starpu_sleep(1.);
 			if (!_starpu_machine_is_running())
-			{
 				/* Application finished, don't bother finishing the sleep */
-				STARPU_PTHREAD_MUTEX_UNLOCK(&config->submitted_mutex);
 				return NULL;
-			}
 		}
 		/* and one final sleep (of less than 1 s) with the rest (if needed) */
 		if (t > 0.)