Revision 95eb97c8

b/Makefile.am
733 733
	src/Ganeti/Jobs.hs \
734 734
	src/Ganeti/Kvmd.hs \
735 735
        src/Ganeti/Locking/Allocation.hs \
736
        src/Ganeti/Locking/Locks.hs \
736 737
	src/Ganeti/Logging.hs \
737 738
	src/Ganeti/Luxi.hs \
738 739
	src/Ganeti/Monitoring/Server.hs \
b/src/Ganeti/Locking/Locks.hs
1
{-| Ganeti lock structure
2

  
3
-}
4

  
5
{-
6

  
7
Copyright (C) 2014 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
26
module Ganeti.Locking.Locks
27
  ( GanetiLocks(..)
28
  , GanetiLockAllocation
29
  ) where
30

  
31
import Ganeti.Locking.Allocation
32
import Ganeti.Types
33

  
34
-- | The type of Locks available in Ganeti. The order of this type
35
-- is the lock oder.
36
data GanetiLocks = BGL deriving (Ord, Eq, Show)
37
-- TODO: add the remaining locks
38

  
39
-- | The type of lock Allocations in Ganeti. In Ganeti, the owner of
40
-- locks are jobs.
41
type GanetiLockAllocation = LockAllocation GanetiLocks JobId

Also available in: Unified diff