threading: add new lock methods (#11964)

This commit is contained in:
Shantanu
2024-05-18 13:55:42 -07:00
committed by GitHub
parent df735cb606
commit ac38fce019

View File

@@ -109,6 +109,9 @@ class Lock:
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
def release(self) -> None: ...
def locked(self) -> bool: ...
def acquire_lock(self, blocking: bool = ..., timeout: float = ...) -> bool: ... # undocumented
def release_lock(self) -> None: ... # undocumented
def locked_lock(self) -> bool: ... # undocumented
@final
class _RLock: