Trees | Indices | Help |
|
---|
|
Module implementing the Ganeti locking code.
|
|||
_SingleNotifyPipeConditionWaiter Helper class for SingleNotifyPipeCondition |
|||
_BaseCondition Base class containing common code for conditions. |
|||
SingleNotifyPipeCondition Condition which can only be notified once. |
|||
PipeCondition Group-only non-polling condition with counters. |
|||
_PipeConditionWithMode | |||
SharedLock Implements a shared lock. |
|||
_AcquireTimeout Internal exception to abort an acquire on a timeout. |
|
|||
|
|||
|
|
|||
_EXCLUSIVE_TEXT = "exclusive"
|
|||
_SHARED_TEXT = "shared"
|
|||
_DELETED_TEXT = "deleted"
|
|||
_DEFAULT_PRIORITY = 0
|
|||
_LOCK_ACQUIRE_MIN_TIMEOUT = 1.0/ 1000 Minimum timeout required to consider scheduling a pending acquisition (seconds) |
|||
ALL_SET = None hash(x) |
|||
LOCKSET_NAME = "[lockset]"
|
|||
LEVELS = [LEVEL_CLUSTER, LEVEL_INSTANCE, LEVEL_NODEGROUP, LEVE
|
|||
LEVELS_MOD = compat.UniqueFrozenset([LEVEL_NODE_RES, LEVEL_NOD
|
|||
LEVEL_NAMES = {LEVEL_CLUSTER: "cluster", LEVEL_INSTANCE: "inst Lock level names (make sure to use singular form) |
|||
BGL = "BGL"
|
Imports: os, select, threading, errno, logging, heapq, time, errors, utils, compat, query
|
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).
|
|
LEVELS
|
LEVELS_MOD
|
LEVEL_NAMESLock level names (make sure to use singular form)
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 4 13:43:46 2016 | http://epydoc.sourceforge.net |