| Issue |
165327
|
| Summary |
LLVMCAS implementation requires `flock` on UNIX
|
| Labels |
llvm:CAS
|
| Assignees |
cachemeifyoucan
|
| Reporter |
cachemeifyoucan
|
LLVMCAS is currently disabled on UNIX platforms that do not have a `flock` implementation. `flock` is currently the only non-POSIX API required for LLVM CAS implementation. It is chosen over the POSIX file locks because `flock` locks the file instead of the process, which makes the file lock doubled as a in-process read/writer lock.
Without flock, LLVMCAS needs to only allow one LLVMCAS instance at the same location in one process. Open the same CAS twice in the same process is an error.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs