(self)
| 2338 | |
| 2339 | class CounterLock: |
| 2340 | def __init__(self): |
| 2341 | self.lock = Lock() |
| 2342 | self.acquire_count = 0 |
| 2343 | self.release_count = 0 |
| 2344 | |
| 2345 | def acquire(self, blocking: bool = True, timeout: float = -1) -> bool: |
| 2346 | acquired = self.lock.acquire(blocking=blocking, timeout=timeout) |
nothing calls this directly
no outgoing calls
no test coverage detected