summaryrefslogtreecommitdiff
path: root/Types/LockPool.hs
blob: dd392f28b6a58f5d9fcbd943feb5661577a2c4f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{- git-annex lock pool data types
 - 
 - Copyright 2014 Joey Hess <joey@kitenet.net>
 -
 - Licensed under the GNU GPL version 3 or higher.
 -}

{-# LANGUAGE CPP #-}

module Types.LockPool (
	LockPool,
	LockHandle
) where

import qualified Data.Map as M

#ifndef mingw32_HOST_OS
import System.Posix.Types (Fd)
type LockHandle = Fd
#else
import Utility.WinLock -- defines LockHandle
#endif

type LockPool = M.Map FilePath LockHandle