diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-05-18 16:23:07 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-05-19 14:09:52 -0400 |
commit | ae5433c4caf0ee57e3338df6dcd625f20ece7101 (patch) | |
tree | 5bdab44419df36e7e5aab2e36cd6b221654de04e /Types | |
parent | 94a3e606fb31150c969d63790ec1ef870f413cc1 (diff) |
use lock pools throughout git-annex
The one exception is in Utility.Daemon. As long as a process only
daemonizes once, which seems reasonable, and as long as it avoids calling
checkDaemon once it's already running as a daemon, the fcntl locking
gotchas won't be a problem there.
Annex.LockFile has it's own separate lock pool layer, which has been
renamed to LockCache. This is a persistent cache of locks that persist
until closed.
This is not quite done; lockContent stil needs to be converted.
Diffstat (limited to 'Types')
-rw-r--r-- | Types/LockCache.hs (renamed from Types/LockPool.hs) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Types/LockPool.hs b/Types/LockCache.hs index 803822042..c1f394cf0 100644 --- a/Types/LockPool.hs +++ b/Types/LockCache.hs @@ -1,16 +1,16 @@ -{- git-annex lock pool data types +{- git-annex lock cache data types - - Copyright 2014 Joey Hess <id@joeyh.name> - - Licensed under the GNU GPL version 3 or higher. -} -module Types.LockPool ( - LockPool, +module Types.LockCache ( + LockCache, LockHandle ) where import qualified Data.Map as M -import Utility.LockFile +import Utility.LockPool -type LockPool = M.Map FilePath LockHandle +type LockCache = M.Map FilePath LockHandle |