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

Method __init__

ci/compiler/lock_manager.py:180–187  ·  view source on GitHub ↗
(self, lock_file: Path)

Source from the content-addressed store, hash-verified

178 """Platform-specific build lock."""
179
180 def __init__(self, lock_file: Path) -> None:
181 self.lock_file_path = lock_file
182 # Use global lock DB for platform locks
183 home_dir = Path.home()
184 db_path = home_dir / ".fastled" / "locks.db"
185 self._db = LockDatabase(db_path)
186 self._lock_name = f"platform:{lock_file}"
187 self.is_locked = False
188
189 def _check_stale_lock(self) -> bool:
190 """Check if lock is stale (dead process) and remove if stale.

Callers

nothing calls this directly

Calls 1

LockDatabaseClass · 0.90

Tested by

no test coverage detected