浏览代码

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

Samuel Thibault 5 年之前
父节点
当前提交
951c2fcbb9
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);
 }