Context manager entry - acquire the lock.
(self)
| 285 | print(f"Warning: Failed to release platform lock: {e}") |
| 286 | |
| 287 | def __enter__(self) -> "PlatformLock": |
| 288 | """Context manager entry - acquire the lock.""" |
| 289 | self.acquire() |
| 290 | return self |
| 291 | |
| 292 | def __exit__( |
| 293 | self, |