mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
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:
parent
a808b3e738
commit
60eb34509b
16 changed files with 166 additions and 34 deletions
4
third_party/python/Lib/threading.py
vendored
4
third_party/python/Lib/threading.py
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue