# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
+# Disable "Invalid name ..." message
+# pylint: disable-msg=C0103
+
"""Module implementing the Ganeti locking code."""
import os
def __init__(self, lock):
"""Constructor for _BaseCondition.
- @type lock: L{threading.Lock}
+ @type lock: threading.Lock
@param lock: condition base lock
"""
self._poller = None
def _check_unnotified(self):
+ """Throws an exception if already notified.
+
+ """
if self._notified:
raise RuntimeError("cannot use already notified condition")