diff options
author | Antoine Pitrou <pitrou@free.fr> | 2017-09-07 16:56:24 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-09-07 16:56:24 (GMT) |
commit | a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344 (patch) | |
tree | 1c31738009bee903417cea928e705a112aea2392 /Programs/_testembed.c | |
parent | 1f06a680de465be0c24a78ea3b610053955daa99 (diff) | |
download | cpython-a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344.zip cpython-a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344.tar.gz cpython-a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344.tar.bz2 |
bpo-31370: Remove support for threads-less builds (#3385)
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
Diffstat (limited to 'Programs/_testembed.c')
-rw-r--r-- | Programs/_testembed.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c index c7660f9..94a3c3d 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -41,9 +41,7 @@ static void print_subinterp(void) static int test_repeated_init_and_subinterpreters(void) { PyThreadState *mainstate, *substate; -#ifdef WITH_THREAD PyGILState_STATE gilstate; -#endif int i, j; for (i=0; i<15; i++) { @@ -51,12 +49,10 @@ static int test_repeated_init_and_subinterpreters(void) _testembed_Py_Initialize(); mainstate = PyThreadState_Get(); -#ifdef WITH_THREAD PyEval_InitThreads(); PyEval_ReleaseThread(mainstate); gilstate = PyGILState_Ensure(); -#endif print_subinterp(); PyThreadState_Swap(NULL); @@ -68,9 +64,7 @@ static int test_repeated_init_and_subinterpreters(void) PyThreadState_Swap(mainstate); print_subinterp(); -#ifdef WITH_THREAD PyGILState_Release(gilstate); -#endif PyEval_RestoreThread(mainstate); Py_Finalize(); |