fix build on windows
broken by ed0afbc36b
Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
parent
5d9cc3e5af
commit
6988c2e740
2 changed files with 9 additions and 2 deletions
|
@ -24,7 +24,7 @@ import Utility.LockPool.STM (LockFile, LockMode(..))
|
||||||
lockShared :: LockFile -> IO (Maybe LockHandle)
|
lockShared :: LockFile -> IO (Maybe LockHandle)
|
||||||
lockShared file = tryMakeLockHandle P.lockPool file
|
lockShared file = tryMakeLockHandle P.lockPool file
|
||||||
(\p f -> P.tryTakeLock p f LockShared)
|
(\p f -> P.tryTakeLock p f LockShared)
|
||||||
(\f -> fmap mk <$> F.lockShared f)
|
(\f _ -> fmap mk <$> F.lockShared f)
|
||||||
|
|
||||||
{- Tries to take an exclusive lock on a file. Fails if another process has
|
{- Tries to take an exclusive lock on a file. Fails if another process has
|
||||||
- a shared or exclusive lock.
|
- a shared or exclusive lock.
|
||||||
|
@ -35,7 +35,7 @@ lockShared file = tryMakeLockHandle P.lockPool file
|
||||||
lockExclusive :: LockFile -> IO (Maybe LockHandle)
|
lockExclusive :: LockFile -> IO (Maybe LockHandle)
|
||||||
lockExclusive file = tryMakeLockHandle P.lockPool file
|
lockExclusive file = tryMakeLockHandle P.lockPool file
|
||||||
(\p f -> P.tryTakeLock p f LockExclusive)
|
(\p f -> P.tryTakeLock p f LockExclusive)
|
||||||
(\f -> fmap mk <$> F.lockExclusive f)
|
(\f _ -> fmap mk <$> F.lockExclusive f)
|
||||||
|
|
||||||
{- If the initial lock fails, this is a BUSY wait, and does not
|
{- If the initial lock fails, this is a BUSY wait, and does not
|
||||||
- guarentee FIFO order of waiters. In other news, Windows is a POS. -}
|
- guarentee FIFO order of waiters. In other news, Windows is a POS. -}
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
[[!comment format=mdwn
|
||||||
|
username="joey"
|
||||||
|
subject="""comment 5"""
|
||||||
|
date="2021-12-03T18:07:56Z"
|
||||||
|
content="""
|
||||||
|
Indeed, fixed that.
|
||||||
|
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue