Commit fdfe88b1 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Make SharedLock._is_owned public



This will be useful for assertions. GanetiLockManager._is_owned is
exported, too.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 4036f63a
......@@ -541,6 +541,8 @@ class SharedLock(object):
finally:
self.__lock.release()
is_owned = _is_owned
def _count_pending(self):
"""Returns the number of pending acquires.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment