1 """Stubs for the "thread" module."""
\r
2 from typing import Callable, Any
\r
4 def _count() -> int: ...
\r
6 class error(Exception): ...
\r
9 def acquire(self, waitflag: int = ...) -> bool: ...
\r
10 def acquire_lock(self, waitflag: int = ...) -> bool: ...
\r
11 def release(self) -> None: ...
\r
12 def release_lock(self) -> None: ...
\r
13 def locked(self) -> bool: ...
\r
14 def locked_lock(self) -> bool: ...
\r
15 def __enter__(self) -> LockType: ...
\r
16 def __exit__(self, typ: Any, value: Any, traceback: Any) -> None: ...
\r
18 class _local(object): ...
\r
19 class _localdummy(object): ...
\r
21 def start_new(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...
\r
22 def start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...
\r
23 def interrupt_main() -> None: ...
\r
26 def exit_thread() -> Any:
\r
28 def allocate_lock() -> LockType: ...
\r
29 def get_ident() -> int: ...
\r
30 def stack_size(size: int = ...) -> int: ...
\r