소스 검색

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);
 }