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

@ -492,7 +492,9 @@
#endif
/* Define if you want to compile in rudimentary thread support */
/* #undef WITH_THREAD */
#ifndef WITH_THREAD
#define WITH_THREAD 1
#endif
/* Define if you want pymalloc to be disabled when running under valgrind */
/* #undef WITH_VALGRIND */
@ -508,7 +510,9 @@
/* #undef _POSIX_1_SOURCE */
/* Define if you have POSIX threads, and your system does not define that. */
/* #undef _POSIX_THREADS */
#ifndef _POSIX_THREADS
#define _POSIX_THREADS
#endif
/* #define _Py_MEMORY_SANITIZER */