Skip to main content

threading

Standard library Module View source
class ThreadLocal
@tuple
class ThreadLocal[T]
Fields 1
T type
Constructors 1
__new__
__new__[T: type]() -> ThreadLocal[T]
class Lock
@tuple
class Lock
Fields 1
p cobj
Constructors 1
__new__
__new__() -> Lock
Methods 2
acquire
acquire(self: Self, /, block: bool = True, timeout: float = -1.0) -> bool
release
release(self: Self, /)
Special methods 2
__enter__
__enter__(self: Self, /)
__exit__
__exit__(self: Self, /)
class RLock
@tuple
class RLock
Fields 1
p cobj
Constructors 1
__new__
__new__() -> RLock
Methods 2
acquire
acquire(self: Self, /, block: bool = True, timeout: float = -1.0) -> bool
release
release(self: Self, /)
Special methods 2
__enter__
__enter__(self: Self, /)
__exit__
__exit__(self: Self, /)
function active_count
active_count() -> int
function get_native_id
get_native_id() -> int
function get_ident
get_ident() -> int