MCPcopy Create free account
hub / github.com/FastLED/FastLED / release

Method release

ci/util/build_lock.py:297–309  ·  view source on GitHub ↗

Release the lock.

(self)

Source from the content-addressed store, hash-verified

295 time.sleep(0.1)
296
297 def release(self) -> None:
298 """Release the lock."""
299 if not self._is_acquired:
300 return
301
302 try:
303 self._db.release(self._lock_name, os.getpid())
304 self._is_acquired = False
305 except KeyboardInterrupt as ki:
306 handle_keyboard_interrupt(ki)
307 raise
308 except Exception:
309 pass
310
311 def __enter__(self) -> "BuildLock":
312 """Context manager entry."""

Callers 7

__exit__Method · 0.95
__del__Method · 0.95
libfastled_build_lockFunction · 0.95
__exit__Method · 0.45

Calls 1

Tested by 3