code: def _ProcessLockAcquired(self):
          
          try:
              is_locked = self._process_lock.acquire(timeout=self._lock_timeout)
              yield is_locked
          finally:
              if is_locked:
                  self._process_lock.release()
docs: Context manager for process locks with timeout.