Explorar o código

tests/datawizard/lazy_unregister.c: use usleep instead of sleep, sleep is not available on windows systems

Nathalie Furmento %!s(int64=13) %!d(string=hai) anos
pai
achega
6d7d24253a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/datawizard/lazy_unregister.c

+ 1 - 1
tests/datawizard/lazy_unregister.c

@@ -65,7 +65,7 @@ int main(void)
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 
 	while (starpu_data_lookup(buffer) != NULL)
-		sleep(1);
+		usleep(100000);
 
 	starpu_shutdown();