quick addition of cosmo pthreads to python.com

- enable WITH_THREAD and _POSIX_THREADS
- add headers everywhere
- breaks only two tests (faulthandler and signal)
- disabled terminal completion because it causes segfaults for some
  reason (probably could not get the current thread)
This commit is contained in:
ahgamut 2023-02-23 10:08:42 +05:30 committed by Justine Tunney
parent a808b3e738
commit 60eb34509b
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
16 changed files with 166 additions and 34 deletions

View file

@ -1323,7 +1323,7 @@ def enumerate():
return list(_active.values()) + list(_limbo.values())
from _dummy_thread import stack_size
from _thread import stack_size
# Create the main thread object,
# and make it available for the interpreter
@ -1371,7 +1371,7 @@ def main_thread():
# module, or from the python fallback
try:
from _dummy_thread import _local as local
from _thread import _local as local
except ImportError:
from _threading_local import local