mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +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
6
third_party/python/Python/finalize.c
vendored
6
third_party/python/Python/finalize.c
vendored
|
@ -32,6 +32,12 @@
|
|||
Locking: as above.
|
||||
*/
|
||||
|
||||
#ifdef WITH_THREAD
|
||||
extern void wait_for_thread_shutdown(void);
|
||||
extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *);
|
||||
extern void _PyGILState_Fini(void);
|
||||
#endif /* WITH_THREAD */
|
||||
|
||||
int
|
||||
Py_FinalizeEx(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue