d279180266
Added a convenience Utility.LockFile that is not a windows/posix portability shim, but still manages to cut down on the boilerplate around locking. This commit was sponsored by Johan Herland.
16 lines
298 B
Haskell
16 lines
298 B
Haskell
{- git-annex lock pool data types
|
|
-
|
|
- Copyright 2014 Joey Hess <joey@kitenet.net>
|
|
-
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
-}
|
|
|
|
module Types.LockPool (
|
|
LockPool,
|
|
LockHandle
|
|
) where
|
|
|
|
import qualified Data.Map as M
|
|
import Utility.LockFile
|
|
|
|
type LockPool = M.Map FilePath LockHandle
|