diff --git a/openflexure_microscope/lock.py b/openflexure_microscope/lock.py index 566ef80e..94e25f5d 100644 --- a/openflexure_microscope/lock.py +++ b/openflexure_microscope/lock.py @@ -11,6 +11,9 @@ class StrictLock(object): self._lock = RLock() self.timeout = timeout + def locked(self): + return self._lock.locked() + def acquire(self, blocking=True): return self._lock.acquire(blocking, timeout=self.timeout)