Explorar el Código

Drop spurious mutex ulock

Samuel Thibault hace 8 años
padre
commit
7dc03d19c3
Se han modificado 1 ficheros con 0 adiciones y 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.)