Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore BinOpDiv Num Num FunctionDef arguments args NameParam NameParam defaults Num body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body If Call NameLoad NameLoad NameLoad body Assert NameLoad Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad TryFinally body Return Call NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If CompareLt NameLoad Num body Break AugAssignMult NameStore Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Assign NameStore NameLoad If BoolOpAnd NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num AttributeLoad NameLoad attr body Break decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num TryFinally body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad finalbody AugAssignSub AttributeStore NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Assign NameStore NameLoad Assert UnaryOpNot BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore NameLoad If CompareIn AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Assign NameStore ListLoad AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assert UnaryOpNot AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad If CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body For NameStore NameLoad body If AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Return ListLoad TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If CompareLt NameLoad Num body Return BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If NameLoad body Return Call AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Return Call AttributeLoad NameLoad attr keyword NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Return Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return UnaryOpNot BoolOpOr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Return CompareIs AttributeLoad NameLoad attr NameLoad orelse Return BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If NameLoad body Return TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assert CompareNotIn NameLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return CompareEq NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareLt NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert BoolOpOr CompareIs NameLoad NameLoad BoolOpAnd AttributeLoad NameLoad attr CompareIn NameLoad NameLoad orelse Assign NameStore NameLoad If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assert CompareNotIn NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assert CompareNotIn NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad TryFinally body While NameLoad body If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Break If BoolOpAnd CompareIsNot NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr body Break Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr finalbody If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body If BoolOpAnd NameLoad Call NameLoad NameLoad body Expr Call NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assert Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Assert AttributeLoad NameLoad attr Assert CompareIn NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot Call AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr Return NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assert BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore UnaryOpNot AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Return Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assert UnaryOpNot Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad NameLoad If NameLoad body Assert BoolOpAnd Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assert UnaryOpNot BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Assert AttributeLoad NameLoad attr Return NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args defaults body Expr Str Return Num decorator_list ClassDef bases NameLoad body Expr Str decorator_list Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad Num Num Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Str Str Str Str Str Assign NameStore Str
N/A N/A Module implementing the Ganeti locking code. N/A os N/A select N/A threading N/A errno N/A logging N/A heapq N/A time ganeti errors ganeti utils ganeti compat ganeti query N/A _EXCLUSIVE_TEXT exclusive N/A _SHARED_TEXT shared N/A _DELETED_TEXT deleted N/A _DEFAULT_PRIORITY 0 N/A _LOCK_ACQUIRE_MIN_TIMEOUT N/A 1.0 1000 ssynchronized N/A N/A mylock shared N/A 0 N/A N/A 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).

  @type mylock: lockable object or string
  @param mylock: lock to acquire or class member name of the lock to acquire

   wrap N/A N/A fn N/A N/A sync_function N/A N/A N/A args kwargs N/A N/A N/A isinstance mylock basestring N/A N/A args cannot ssynchronize on non-class method: self not found N/A lock N/A getattr N/A args N/A 0 mylock N/A N/A lock mylock N/A N/A N/A lock acquire shared shared N/A N/A N/A N/A fn args kwargs N/A N/A N/A N/A lock release N/A N/A sync_function N/A N/A wrap N/A _SingleNotifyPipeConditionWaiter N/A object N/A N/A Helper class for SingleNotifyPipeCondition

   N/A __slots__ N/A _fd __init__ N/A N/A self fd N/A N/A N/A Constructor for _SingleNotifyPipeConditionWaiter

    @type fd: int
    @param fd: File descriptor to wait for

     N/A N/A N/A object __init__ self N/A N/A self _fd fd N/A __call__ N/A N/A self timeout N/A N/A N/A Wait for something to happen on the pipe.

    @type timeout: float or None
    @param timeout: Timeout for waiting (can be None)

     N/A running_timeout N/A N/A utils RunningTimeout timeout True N/A poller N/A N/A select poll N/A N/A N/A poller register N/A self _fd N/A select POLLHUP N/A True N/A N/A remaining_time N/A N/A running_timeout Remaining N/A N/A remaining_time None N/A N/A N/A remaining_time 0.0 N/A N/A N/A remaining_time 1000 N/A N/A N/A result N/A N/A poller poll remaining_time N/A N/A N/A EnvironmentError N/A err N/A N/A N/A N/A err errno N/A errno EINTR N/A N/A N/A result None N/A N/A result N/A N/A N/A result N/A 0 N/A 0 N/A self _fd N/A N/A N/A N/A _BaseCondition N/A object N/A N/A Base class containing common code for conditions.

  Some of this code is taken from python's threading module.

   N/A __slots__ N/A _lock acquire release _is_owned _acquire_restore _release_save __init__ N/A N/A self lock N/A N/A N/A Constructor for _BaseCondition.

    @type lock: threading.Lock
    @param lock: condition base lock

     N/A N/A N/A object __init__ self N/A N/A N/A N/A self _release_save N/A lock _release_save N/A N/A N/A AttributeError N/A N/A N/A self _release_save N/A self _base_release_save N/A N/A N/A N/A self _acquire_restore N/A lock _acquire_restore N/A N/A N/A AttributeError N/A N/A N/A self _acquire_restore N/A self _base_acquire_restore N/A N/A N/A N/A self _is_owned N/A lock is_owned N/A N/A N/A AttributeError N/A N/A N/A self _is_owned N/A self _base_is_owned N/A N/A self _lock lock N/A N/A self acquire N/A lock acquire N/A N/A self release N/A lock release N/A _base_is_owned N/A N/A self N/A N/A N/A Check whether lock is owned by current thread.

     N/A N/A N/A N/A self _lock acquire 0 N/A N/A N/A N/A N/A self _lock release N/A False N/A True N/A _base_release_save N/A N/A self N/A N/A N/A N/A N/A N/A self _lock release N/A _base_acquire_restore N/A N/A self _ N/A N/A N/A N/A N/A N/A self _lock acquire N/A _check_owned N/A N/A self N/A N/A N/A Raise an exception if the current thread doesn't own the lock.

     N/A N/A N/A N/A self _is_owned N/A N/A N/A RuntimeError cannot work with un-aquired lock N/A N/A SingleNotifyPipeCondition N/A _BaseCondition N/A N/A Condition which can only be notified once.

  This condition class uses pipes and poll, internally, to be able to wait for
  notification with a timeout, without resorting to polling. It is almost
  compatible with Python's threading.Condition, with the following differences:
    - notifyAll can only be called once, and no wait can happen after that
    - notify is not supported, only notifyAll

   N/A __slots__ N/A _read_fd _write_fd _nwaiters _notified N/A _waiter_class _SingleNotifyPipeConditionWaiter __init__ N/A N/A self lock N/A N/A N/A Constructor for SingleNotifyPipeCondition

     N/A N/A N/A _BaseCondition __init__ self lock N/A N/A self _nwaiters 0 N/A N/A self _notified False N/A N/A self _read_fd None N/A N/A self _write_fd None N/A _check_unnotified N/A N/A self N/A N/A N/A Throws an exception if already notified.

     N/A N/A self _notified N/A N/A N/A RuntimeError cannot use already notified condition N/A _Cleanup N/A N/A self N/A N/A N/A Cleanup open file descriptors, if any.

     N/A N/A N/A self _read_fd None N/A N/A N/A N/A os close N/A self _read_fd N/A N/A self _read_fd None N/A N/A N/A self _write_fd None N/A N/A N/A N/A os close N/A self _write_fd N/A N/A self _write_fd None N/A wait N/A N/A self timeout N/A N/A N/A Wait for a notification.

    @type timeout: float or None
    @param timeout: Waiting timeout (can be None)

     N/A N/A N/A self _check_owned N/A N/A N/A self _check_unnotified N/A N/A self _nwaiters 1 N/A N/A N/A N/A N/A self _read_fd None N/A N/A N/A N/A self _read_fd N/A self _write_fd N/A N/A os pipe N/A wait_fn N/A N/A self _waiter_class N/A self _read_fd N/A state N/A N/A self _release_save N/A N/A N/A N/A wait_fn timeout N/A N/A N/A N/A self _acquire_restore state N/A N/A N/A self _nwaiters 1 N/A N/A N/A self _nwaiters 0 N/A N/A N/A N/A self _Cleanup N/A notifyAll N/A N/A self N/A N/A N/A Close the writing side of the pipe to notify all waiters.

     N/A N/A N/A self _check_owned N/A N/A N/A self _check_unnotified N/A N/A self _notified True N/A N/A N/A self _write_fd None N/A N/A N/A N/A os close N/A self _write_fd N/A N/A self _write_fd None N/A N/A PipeCondition N/A _BaseCondition N/A N/A Group-only non-polling condition with counters.

  This condition class uses pipes and poll, internally, to be able to wait for
  notification with a timeout, without resorting to polling. It is almost
  compatible with Python's threading.Condition, but only supports notifyAll and
  non-recursive locks. As an additional features it's able to report whether
  there are any waiting threads.

   N/A __slots__ N/A _waiters _single_condition N/A _single_condition_class SingleNotifyPipeCondition __init__ N/A N/A self lock N/A N/A N/A Initializes this class.

     N/A N/A N/A _BaseCondition __init__ self lock N/A N/A self _waiters N/A set N/A N/A self _single_condition N/A N/A self _single_condition_class N/A self _lock N/A wait N/A N/A self timeout N/A N/A N/A Wait for a notification.

    @type timeout: float or None
    @param timeout: Waiting timeout (can be None)

     N/A N/A N/A self _check_owned N/A cond N/A self _single_condition N/A N/A N/A N/A self _waiters add N/A N/A threading currentThread N/A N/A N/A N/A N/A cond wait timeout N/A N/A N/A N/A self _check_owned N/A N/A N/A N/A self _waiters remove N/A N/A threading currentThread N/A notifyAll N/A N/A self N/A N/A N/A Notify all currently waiting threads.

     N/A N/A N/A self _check_owned N/A N/A N/A N/A self _single_condition notifyAll N/A N/A self _single_condition N/A N/A self _single_condition_class N/A self _lock N/A get_waiting N/A N/A self N/A N/A N/A Returns a list of all waiting threads.

     N/A N/A N/A self _check_owned N/A N/A self _waiters N/A has_waiting N/A N/A self N/A N/A N/A Returns whether there are active waiters.

     N/A N/A N/A self _check_owned N/A N/A bool N/A self _waiters N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s.%s waiters=%s at %#x> N/A N/A N/A self __class__ __module__ N/A N/A self __class__ __name__ N/A self _waiters N/A id self N/A N/A _PipeConditionWithMode N/A PipeCondition N/A N/A __slots__ N/A shared __init__ N/A N/A self lock shared N/A N/A N/A Initializes this class.

     N/A N/A self shared shared N/A N/A N/A PipeCondition __init__ self lock N/A N/A SharedLock N/A object N/A N/A Implements a shared lock.

  Multiple threads can acquire the lock in a shared way by calling
  C{acquire(shared=1)}. In order to acquire the lock in an exclusive way
  threads can call C{acquire(shared=0)}.

  Notes on data structures: C{__pending} contains a priority queue (heapq) of
  all pending acquires: C{[(priority1: prioqueue1), (priority2: prioqueue2),
  ...]}. Each per-priority queue contains a normal in-order list of conditions
  to be notified when the lock can be acquired. Shared locks are grouped
  together by priority and the condition for them is stored in
  C{__pending_shared} if it already exists. C{__pending_by_prio} keeps
  references for the per-priority queues indexed by priority for faster access.

  @type name: string
  @ivar name: the name of the lock

   N/A __slots__ N/A __weakref__ __deleted __exc __lock __pending __pending_by_prio __pending_shared __shr __time_fn name N/A __condition_class _PipeConditionWithMode __init__ N/A N/A self name monitor _time_fn N/A None N/A time time N/A N/A Construct a new SharedLock.

    @param name: the name of the lock
    @param monitor: Lock monitor with which to register

     N/A N/A N/A object __init__ self N/A N/A self name name N/A N/A self __time_fn _time_fn N/A N/A self __lock N/A N/A threading Lock N/A N/A self __pending N/A N/A N/A self __pending_by_prio N/A N/A N/A self __pending_shared N/A N/A N/A self __shr N/A set N/A N/A self __exc None N/A N/A self __deleted False N/A monitor N/A N/A N/A N/A logging debug Adding lock %s to monitor name N/A N/A N/A monitor RegisterLock self N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s.%s name=%s at %#x> N/A N/A N/A self __class__ __module__ N/A N/A self __class__ __name__ N/A self name N/A id self N/A GetLockInfo N/A N/A self requested N/A N/A N/A Retrieves information for querying locks.

    @type requested: set
    @param requested: Requested information, see C{query.LQ_*}

     N/A N/A N/A N/A self __lock acquire N/A N/A N/A mode None N/A owner_names None N/A N/A N/A query LQ_MODE requested N/A N/A N/A self __deleted N/A N/A mode _DELETED_TEXT N/A N/A N/A N/A self __exc N/A self __shr N/A N/A N/A self __exc N/A N/A mode _EXCLUSIVE_TEXT N/A N/A N/A self __shr N/A N/A mode _SHARED_TEXT N/A N/A N/A query LQ_OWNER requested N/A N/A N/A self __exc N/A N/A owner N/A N/A self __exc N/A N/A owner N/A self __shr N/A owner N/A N/A N/A N/A self __deleted N/A owner_names N/A N/A N/A i getName N/A i owner N/A N/A N/A query LQ_PENDING requested N/A N/A pending N/A N/A N/A _ prioqueue N/A sorted N/A self __pending N/A N/A cond prioqueue N/A N/A N/A cond shared N/A N/A pendmode _SHARED_TEXT N/A N/A pendmode _EXCLUSIVE_TEXT N/A N/A N/A pending append N/A pendmode N/A N/A N/A i getName N/A i N/A N/A cond get_waiting N/A N/A pending None N/A N/A N/A N/A self name mode owner_names pending N/A N/A N/A N/A N/A self __lock release N/A __check_deleted N/A N/A self N/A N/A N/A Raises an exception if the lock has been deleted.

     N/A N/A self __deleted N/A N/A N/A N/A errors LockError N/A Deleted lock %s N/A self name N/A __is_sharer N/A N/A self N/A N/A N/A Is the current thread sharing the lock at this time?

     N/A N/A N/A N/A threading currentThread N/A self __shr N/A __is_exclusive N/A N/A self N/A N/A N/A Is the current thread holding the lock exclusively at this time?

     N/A N/A N/A N/A threading currentThread N/A self __exc N/A __is_owned N/A N/A self shared N/A -1 N/A N/A Is the current thread somehow owning the lock at this time?

    This is a private version of the function, which presumes you're holding
    the internal lock.

     N/A N/A shared 0 N/A N/A N/A N/A N/A self __is_sharer N/A N/A self __is_exclusive N/A N/A shared N/A N/A N/A N/A self __is_sharer N/A N/A N/A N/A self __is_exclusive N/A is_owned N/A N/A self shared N/A -1 N/A N/A Is the current thread somehow owning the lock at this time?

    @param shared:
        - < 0: check for any type of ownership (default)
        - 0: check for exclusive ownership
        - > 0: check for shared ownership

     N/A N/A N/A N/A self __lock acquire N/A N/A N/A N/A N/A self __is_owned shared shared N/A N/A N/A N/A N/A self __lock release N/A N/A _is_owned is_owned _count_pending N/A N/A self N/A N/A N/A Returns the number of pending acquires.

    @rtype: int

     N/A N/A N/A N/A self __lock acquire N/A N/A N/A N/A sum N/A N/A len prioqueue N/A N/A _ prioqueue N/A self __pending N/A N/A N/A N/A N/A self __lock release N/A _check_empty N/A N/A self N/A N/A N/A Checks whether there are any pending acquires.

    @rtype: bool

     N/A N/A N/A N/A self __lock acquire N/A N/A N/A N/A _ prioqueue N/A N/A self __find_first_pending_queue N/A N/A N/A prioqueue N/A self __pending N/A self __pending_by_prio N/A self __pending_shared N/A N/A N/A N/A N/A self __lock release N/A __do_acquire N/A N/A self shared N/A N/A N/A Actually acquire the lock.

     N/A shared N/A N/A N/A N/A N/A self __shr add N/A N/A threading currentThread N/A N/A N/A self __exc N/A N/A threading currentThread N/A __can_acquire N/A N/A self shared N/A N/A N/A Determine whether lock can be acquired.

     N/A shared N/A N/A N/A N/A self __exc None N/A N/A N/A N/A N/A len N/A self __shr 0 N/A N/A self __exc None N/A __find_first_pending_queue N/A N/A self N/A N/A N/A Tries to find the topmost queued entry with pending acquires.

    Removes empty entries while going through the list.

     N/A N/A self __pending N/A N/A N/A priority prioqueue N/A N/A self __pending N/A 0 N/A prioqueue N/A N/A N/A priority prioqueue N/A N/A N/A heapq heappop N/A self __pending N/A N/A N/A self __pending_by_prio N/A priority N/A N/A priority N/A self __pending_shared N/A N/A None None N/A __is_on_top N/A N/A self cond N/A N/A N/A Checks whether the passed condition is on top of the queue.

    The caller must make sure the queue isn't empty.

     N/A N/A _ prioqueue N/A N/A self __find_first_pending_queue N/A N/A cond N/A prioqueue N/A 0 N/A __acquire_unlocked N/A N/A self shared timeout priority N/A N/A N/A Acquire a shared lock.

    @param shared: whether to acquire in shared mode; by default an
        exclusive lock will be acquired
    @param timeout: maximum waiting time before giving up
    @type priority: integer
    @param priority: Priority for acquiring lock

     N/A N/A N/A self __check_deleted N/A N/A N/A N/A self __is_owned N/A double acquire() on a non-recursive lock %s N/A self name N/A N/A N/A self __find_first_pending_queue N/A N/A N/A N/A self __pending N/A N/A self __can_acquire shared N/A N/A N/A N/A self __do_acquire shared N/A True N/A N/A N/A timeout None N/A timeout _LOCK_ACQUIRE_MIN_TIMEOUT N/A N/A False N/A prioqueue N/A N/A N/A self __pending_by_prio get priority None N/A shared N/A N/A wait_condition N/A N/A N/A self __pending_shared get priority None N/A N/A N/A wait_condition None N/A N/A wait_condition shared N/A wait_condition prioqueue N/A N/A wait_condition None N/A N/A wait_condition None N/A N/A N/A prioqueue None N/A N/A N/A priority N/A self __pending_by_prio N/A prioqueue N/A N/A N/A N/A heapq heappush N/A self __pending N/A priority prioqueue N/A N/A N/A self __pending_by_prio N/A priority prioqueue N/A wait_condition N/A N/A self __condition_class N/A self __lock shared N/A N/A N/A prioqueue append wait_condition N/A shared N/A N/A N/A priority N/A self __pending_shared N/A N/A N/A self __pending_shared N/A priority wait_condition N/A wait_start N/A N/A self __time_fn N/A acquired False N/A N/A N/A True N/A N/A N/A N/A N/A self __is_on_top wait_condition N/A N/A self __can_acquire shared N/A N/A N/A N/A self __do_acquire shared N/A acquired True N/A N/A N/A N/A timeout None N/A N/A utils TimeoutExpired wait_start timeout _time_fn N/A self __time_fn N/A N/A N/A N/A N/A wait_condition wait timeout N/A N/A N/A self __check_deleted N/A N/A N/A N/A N/A wait_condition has_waiting N/A N/A N/A N/A prioqueue remove wait_condition N/A N/A wait_condition shared N/A N/A N/A N/A N/A self __pending_shared pop priority None N/A acquired N/A acquire N/A N/A self shared timeout priority test_notify N/A 0 None None None N/A N/A Acquire a shared lock.

    @type shared: integer (0/1) used as a boolean
    @param shared: whether to acquire in shared mode; by default an
        exclusive lock will be acquired
    @type timeout: float
    @param timeout: maximum waiting time before giving up
    @type priority: integer
    @param priority: Priority for acquiring lock
    @type test_notify: callable or None
    @param test_notify: Special callback function for unittesting

     N/A N/A priority None N/A N/A priority _DEFAULT_PRIORITY N/A N/A N/A N/A self __lock acquire N/A N/A N/A N/A __debug__ N/A callable test_notify N/A N/A N/A test_notify N/A N/A N/A self __acquire_unlocked shared timeout priority N/A N/A N/A N/A N/A self __lock release N/A downgrade N/A N/A self N/A N/A N/A Changes the lock mode from exclusive to shared.

    Pending acquires in shared mode on the same priority will go ahead.

     N/A N/A N/A N/A self __lock acquire N/A N/A N/A N/A N/A self __is_owned Lock must be owned N/A N/A N/A self __is_exclusive N/A N/A N/A self __exc None N/A N/A N/A self __do_acquire 1 N/A N/A priority prioqueue N/A N/A self __find_first_pending_queue N/A prioqueue N/A N/A cond N/A N/A N/A self __pending_shared pop priority None N/A cond N/A N/A N/A cond shared N/A N/A cond prioqueue N/A N/A N/A len prioqueue 1 N/A N/A N/A N/A prioqueue remove cond N/A N/A N/A prioqueue insert 0 cond N/A N/A N/A cond notifyAll N/A N/A N/A N/A self __is_exclusive N/A N/A N/A self __is_sharer N/A True N/A N/A N/A N/A N/A self __lock release N/A release N/A N/A self N/A N/A N/A Release a Shared Lock.

    You must have acquired the lock, either in shared or in exclusive mode,
    before calling this function.

     N/A N/A N/A N/A self __lock acquire N/A N/A N/A N/A N/A N/A self __is_exclusive N/A N/A self __is_sharer Cannot release non-owned lock N/A N/A N/A self __is_exclusive N/A N/A N/A self __exc None N/A notify True N/A N/A N/A N/A N/A self __shr remove N/A N/A threading currentThread N/A notify N/A N/A self __shr N/A notify N/A N/A N/A N/A self __notify_topmost N/A N/A N/A N/A N/A self __lock release N/A __notify_topmost N/A N/A self N/A N/A N/A Notifies topmost condition in queue of pending acquires.

     N/A N/A priority prioqueue N/A N/A self __find_first_pending_queue N/A prioqueue N/A N/A cond N/A prioqueue N/A 0 N/A N/A N/A cond notifyAll N/A N/A cond shared N/A N/A N/A N/A N/A self __pending_shared pop priority None N/A _notify_topmost N/A N/A self N/A N/A N/A Exported version of L{__notify_topmost}.

     N/A N/A N/A N/A self __lock acquire N/A N/A N/A N/A N/A self __notify_topmost N/A N/A N/A N/A N/A self __lock release N/A delete N/A N/A self timeout priority N/A None None N/A N/A Delete a Shared Lock.

    This operation will declare the lock for removal. First the lock will be
    acquired in exclusive mode if you don't already own it, then the lock
    will be put in a state where any future and pending acquire() fail.

    @type timeout: float
    @param timeout: maximum waiting time before giving up
    @type priority: integer
    @param priority: Priority for acquiring lock

     N/A N/A priority None N/A N/A priority _DEFAULT_PRIORITY N/A N/A N/A N/A self __lock acquire N/A N/A N/A N/A N/A N/A self __is_sharer Cannot delete() a lock while sharing it N/A N/A N/A self __check_deleted N/A acquired N/A N/A self __is_exclusive N/A N/A acquired N/A N/A acquired N/A N/A self __acquire_unlocked 0 timeout priority N/A acquired N/A N/A N/A N/A N/A self __is_exclusive N/A N/A N/A self __is_sharer Lock wasn't acquired in exclusive mode N/A N/A self __deleted True N/A N/A self __exc None N/A N/A N/A N/A self __exc N/A self __shr Found owner during deletion N/A N/A _ prioqueue N/A self __pending N/A N/A cond prioqueue N/A N/A N/A N/A cond notifyAll N/A N/A self __deleted N/A acquired N/A N/A N/A N/A N/A self __lock release N/A _release_save N/A N/A self N/A N/A N/A shared N/A N/A self __is_sharer N/A N/A N/A self release N/A shared N/A _acquire_restore N/A N/A self shared N/A N/A N/A N/A N/A self acquire shared shared N/A N/A N/A ALL_SET None N/A LOCKSET_NAME [lockset] _TimeoutZero N/A N/A N/A N/A N/A Returns the number zero.

   N/A 0 N/A _AcquireTimeout N/A Exception N/A N/A Internal exception to abort an acquire on a timeout.

   N/A N/A N/A LEVEL_CLUSTER LEVEL_INSTANCE LEVEL_NODEGROUP LEVEL_NODE LEVEL_NODE_RES LEVEL_NETWORK N/A range 0 6 N/A LEVELS N/A LEVEL_CLUSTER LEVEL_INSTANCE LEVEL_NODEGROUP LEVEL_NODE LEVEL_NODE_RES LEVEL_NETWORK N/A LEVELS_MOD N/A N/A compat UniqueFrozenset N/A LEVEL_NODE_RES LEVEL_NODE LEVEL_NODEGROUP LEVEL_INSTANCE LEVEL_NETWORK N/A LEVEL_NAMES N/A LEVEL_CLUSTER LEVEL_INSTANCE LEVEL_NODEGROUP LEVEL_NODE LEVEL_NODE_RES LEVEL_NETWORK cluster instance nodegroup node node-res network N/A BGL BGL