Explorar o código

Make sure we flush writes before unlocking the file for read by others

Samuel Thibault %!s(int64=5) %!d(string=hai) anos
pai
achega
951c2fcbb9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/common/utils.c

+ 1 - 0
src/common/utils.c

@@ -464,6 +464,7 @@ int _starpu_fwrlock(FILE *file)
 
 int _starpu_fwrunlock(FILE *file)
 {
+	fflush(file);
 	return _starpu_frdunlock(file);
 }