(self, lock_file: Path)
| 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. |
nothing calls this directly
no test coverage detected