[PATCH] D78896: [Support] Add file lock/unlock functions

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 26 23:57:09 PDT 2020


sepavloff created this revision.
sepavloff added reviewers: rnk, MaskRay, labath, sammccall.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
sepavloff added a child revision: D78897: [Support] raw_fd_ostream can lock file before write.

New functions `lockFile` and `unlockFile` implement simple file locking.
They lock or unlock entire file. This must be enough to support
simulataneous writes to log files in parallel builds.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78896

Files:
  llvm/include/llvm/Support/FileSystem.h
  llvm/lib/Support/Unix/Path.inc
  llvm/lib/Support/Windows/Path.inc
  llvm/unittests/Support/Path.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78896.260217.patch
Type: text/x-patch
Size: 4900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200427/d2eaa7a7/attachment.bin>


More information about the llvm-commits mailing list