mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-31370: Remove support for threads-less builds (#3385)
* Remove Setup.config * Always define WITH_THREAD for compatibility.
This commit is contained in:
parent
1f06a680de
commit
a6a4dc816d
135 changed files with 2472 additions and 4377 deletions
|
|
@ -359,7 +359,7 @@ static int win32_can_symlink = 0;
|
|||
|
||||
/* Don't use the "_r" form if we don't need it (also, won't have a
|
||||
prototype for it, at least on Solaris -- maybe others as well?). */
|
||||
#if defined(HAVE_CTERMID_R) && defined(WITH_THREAD)
|
||||
#if defined(HAVE_CTERMID_R)
|
||||
#define USE_CTERMID_R
|
||||
#endif
|
||||
|
||||
|
|
@ -454,14 +454,12 @@ PyOS_AfterFork_Parent(void)
|
|||
void
|
||||
PyOS_AfterFork_Child(void)
|
||||
{
|
||||
#ifdef WITH_THREAD
|
||||
/* PyThread_ReInitTLS() must be called early, to make sure that the TLS API
|
||||
* can be called safely. */
|
||||
PyThread_ReInitTLS();
|
||||
_PyGILState_Reinit();
|
||||
PyEval_ReInitThreads();
|
||||
_PyImport_ReInitLock();
|
||||
#endif
|
||||
_PySignal_AfterFork();
|
||||
|
||||
run_at_forkers(PyThreadState_Get()->interp->after_forkers_child, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue