mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +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
18
third_party/python/python.c
vendored
18
third_party/python/python.c
vendored
|
@ -167,6 +167,7 @@ STATIC_YOINK("_PyImport_Inittab__stat");
|
|||
STATIC_YOINK("_PyImport_Inittab__struct");
|
||||
STATIC_YOINK("_PyImport_Inittab__symtable");
|
||||
STATIC_YOINK("_PyImport_Inittab__testcapi");
|
||||
STATIC_YOINK("_PyImport_Inittab__thread");
|
||||
STATIC_YOINK("_PyImport_Inittab__tracemalloc");
|
||||
STATIC_YOINK("_PyImport_Inittab_array");
|
||||
STATIC_YOINK("_PyImport_Inittab_atexit");
|
||||
|
@ -495,6 +496,23 @@ PYTHON_YOINK("nntplib");
|
|||
|
||||
PYTHON_YOINK("asdl");
|
||||
#ifdef WITH_THREAD
|
||||
PYTHON_YOINK("_thread");
|
||||
PYTHON_YOINK("_thread.LockType");
|
||||
PYTHON_YOINK("_thread.RLock");
|
||||
PYTHON_YOINK("_thread.TIMEOUT_MAX");
|
||||
PYTHON_YOINK("_thread._count");
|
||||
PYTHON_YOINK("_thread._local");
|
||||
PYTHON_YOINK("_thread._set_sentinel");
|
||||
PYTHON_YOINK("_thread.allocate");
|
||||
PYTHON_YOINK("_thread.allocate_lock");
|
||||
PYTHON_YOINK("_thread.error");
|
||||
PYTHON_YOINK("_thread.exit");
|
||||
PYTHON_YOINK("_thread.exit_thread");
|
||||
PYTHON_YOINK("_thread.get_ident");
|
||||
PYTHON_YOINK("_thread.interrupt_main");
|
||||
PYTHON_YOINK("_thread.stack_size");
|
||||
PYTHON_YOINK("_thread.start_new");
|
||||
PYTHON_YOINK("_thread.start_new_thread");
|
||||
PYTHON_YOINK("asynchat");
|
||||
PYTHON_YOINK("asyncore");
|
||||
PYTHON_YOINK("asyncio");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue