[PATCH] D78896: [Support] Add file lock/unlock functions
Serge Pavlov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 7 21:52:45 PDT 2020
sepavloff updated this revision to Diff 269104.
sepavloff added a comment.
Updated patch
- `flock` call was replaced by `fcntl` in hope that this change would enable this facility on Solaris OS, where `flock` is unavailable.
- As locks created by `fcntl` work on per-process basis, unit test based on multithreding does not work. A new unit test where locks are obtained in different processes was added.
If nobody will argue in couple of days, this patch will be committed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78896/new/
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/ProgramTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78896.269104.patch
Type: text/x-patch
Size: 7797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200608/54ee9a24/attachment-0001.bin>
More information about the llvm-commits
mailing list