This will be useful for assertions. GanetiLockManager._is_owned is
exported, too.

Signed-off-by: Michael Hanselmann <[email protected]>
---
 lib/locking.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/locking.py b/lib/locking.py
index 4a431b3..18d41fa 100644
--- a/lib/locking.py
+++ b/lib/locking.py
@@ -542,6 +542,8 @@ class SharedLock(object):
     finally:
       self.__lock.release()
 
+  is_owned = _is_owned
+
   def _count_pending(self):
     """Returns the number of pending acquires.
 
-- 
1.7.3.5

Reply via email to