4 from queue import Queue as Queue
5 from typing import Any, Callable, Iterable, Mapping, Sequence
8 Barrier = threading.Barrier
9 BoundedSemaphore = threading.BoundedSemaphore
10 Condition = threading.Condition
11 Event = threading.Event
13 RLock = threading.RLock
14 Semaphore = threading.Semaphore
16 class DummyProcess(threading.Thread):
17 _children: weakref.WeakKeyDictionary[Any, Any]
18 _parent: threading.Thread
25 target: Callable[..., Any] | None = ...,
26 name: str | None = ...,
27 args: Iterable[Any] = ...,
28 kwargs: Mapping[str, Any] = ...,
31 Process = DummyProcess
34 def __init__(self, **kwds: Any) -> None: ...
35 def __getattr__(self, __name: str) -> Any: ...
36 def __setattr__(self, __name: str, __value: Any) -> None: ...
42 def __init__(self, typecode: Any, value: Any, lock: Any = ...) -> None: ...
44 def Array(typecode: Any, sequence: Sequence[Any], lock: Any = ...) -> array.array[Any]: ...
45 def Manager() -> Any: ...
46 def Pool(processes: int | None = ..., initializer: Callable[..., Any] | None = ..., initargs: Iterable[Any] = ...) -> Any: ...
47 def active_children() -> list[Any]: ...
48 def current_process() -> threading.Thread: ...
49 def freeze_support() -> None: ...
50 def shutdown() -> None: ...