need more polymorphism
This commit is contained in:
parent
696ed9b3f9
commit
6c3cea7699
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ dropLock = closeHandle
|
||||||
|
|
||||||
{- 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. -}
|
||||||
waitToLock :: IO (Maybe LockHandle) -> IO LockHandle
|
waitToLock :: IO (Maybe lockhandle) -> IO lockhandle
|
||||||
waitToLock locker = takelock
|
waitToLock locker = takelock
|
||||||
where
|
where
|
||||||
takelock = go =<< locker
|
takelock = go =<< locker
|
||||||
|
|
|
@ -45,5 +45,5 @@ lockExclusive file = tryMakeLockHandle
|
||||||
|
|
||||||
{- 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. -}
|
||||||
waitToLock :: IO (Maybe LockHandle) -> IO LockHandle
|
waitToLock :: IO (Maybe lockhandle) -> IO lockhandle
|
||||||
waitToLock = F.waitToLock
|
waitToLock = F.waitToLock
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue