)
#else
lock retention obj lckf =
- let (locker, postunlock) = winLocker lockShared' obj lckf
+ let (locker, postunlock) = winLocker lockShared obj lckf
in
( locker >>= \case
Just lck -> do
-- In order to dropretention, have to
-- take an exclusive lock.
let (exlocker, expostunlock) =
- winLocker lockExclusive' obj lckf
+ winLocker lockExclusive obj lckf
exlocker >>= \case
Nothing -> noop
Just lck -> do
#else
lock obj lckf =
let (exlocker, expostunlock) =
- winLocker lockExclusive' obj lckf
+ winLocker lockExclusive obj lckf
in (checkRetentionTimestamp key exlocker, expostunlock)
#endif