| Trees | Indices | Help |
|
|---|
|
|
Module implementing the Ganeti locking code.
|
|||
|
SharedLock Implements a shared lock. |
|||
|
LockSet Implements a set of locks. |
|||
|
GanetiLockManager The Ganeti Locking Library |
|||
|
|||
|
|||
|
|||
ALL_SET = None
|
|||
LEVEL_CLUSTER = 0
|
|||
LEVEL_INSTANCE = 1
|
|||
LEVEL_NODE = 2
|
|||
LEVELS = [LEVEL_CLUSTER, LEVEL_INSTANCE, LEVEL_NODE]
|
|||
LEVELS_MOD = [LEVEL_NODE, LEVEL_INSTANCE]
|
|||
BGL = 'BGL'
|
|||
Imports: threading, errors, utils
|
|||
Shared Synchronization decorator. Calls the function holding the given lock, either in exclusive or shared mode. It requires the passed lock to be a SharedLock (or support its semantics). |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 3 12:34:35 2010 | http://epydoc.sourceforge.net |