Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.Util.FileLock
Documentation
Abstraction for file locks
ioFileLock :: FileLock IO Source #
Implementation of
FileLock
for
IO
, using on
System.FileLock
.
Locking the file can block in FFI, so not interruptible.
Unlocking the file is not guaranteed to be synchronous. Near instantaneous on Linux, but not synchronous. On Windows, unlocking is even more lazy.