1 from typing import Any, Callable, NoReturn, Tuple
6 def start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: dict[str, Any] = ...) -> None: ...
7 def exit() -> NoReturn: ...
8 def get_ident() -> int: ...
9 def allocate_lock() -> LockType: ...
10 def stack_size(size: int | None = ...) -> int: ...
12 class LockType(object):
14 def __init__(self) -> None: ...
15 def acquire(self, waitflag: bool | None = ..., timeout: int = ...) -> bool: ...
16 def __enter__(self, waitflag: bool | None = ..., timeout: int = ...) -> bool: ...
17 def __exit__(self, typ: Any, val: Any, tb: Any) -> None: ...
18 def release(self) -> bool: ...
19 def locked(self) -> bool: ...
21 def interrupt_main() -> None: ...