Skip to main content

Lock

Standard library class threading.Lock View source
class Lock
@tuple
class Lock
Fields 1
p cobj
Constructors 1
__new__
__new__() -> Lock
Defined in threading
Methods 2
acquire
acquire(self: Self, /, block: bool = True, timeout: float = -1.0) -> bool
Defined in threading
release
release(self: Self, /)
Defined in threading
Special methods 2
__enter__
__enter__(self: Self, /)
Defined in threading
__exit__
__exit__(self: Self, /)
Defined in threading