Browse Source

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

Samuel Thibault 5 years ago
parent
commit
951c2fcbb9
1 changed files with 1 additions and 0 deletions
  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);
 }