lock pools to work around non-concurrency/composition safety of POSIX fcntl
This commit is contained in:
parent
af6b313456
commit
6915b71c57
8 changed files with 327 additions and 12 deletions
|
@ -22,7 +22,7 @@ type LockFile = FilePath
|
|||
type LockHandle = HANDLE
|
||||
|
||||
{- Tries to lock a file with a shared lock, which allows other processes to
|
||||
- also lock it shared. Fails is the file is exclusively locked. -}
|
||||
- also lock it shared. Fails if the file is exclusively locked. -}
|
||||
lockShared :: LockFile -> IO (Maybe LockHandle)
|
||||
lockShared = openLock fILE_SHARE_READ
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue