use locking on Windows

This is all the easy cases, where there was already a separate lock file.
This commit is contained in:
Joey Hess 2014-01-28 14:17:14 -04:00
parent 8de4db664d
commit 891c85cd88
8 changed files with 95 additions and 40 deletions

View file

@ -9,11 +9,10 @@ module Utility.WinLock (
lockShared,
lockExclusive,
dropLock,
waitToLock
waitToLock,
LockHandle
) where
import Common
import System.Win32.Types
import System.Win32.File
import Control.Concurrent