Searched refs:mainstate (Results 1 – 2 of 2) sorted by relevance
55 PyThreadState *mainstate, *substate; in test_repeated_init_and_subinterpreters() local62 mainstate = PyThreadState_Get(); in test_repeated_init_and_subinterpreters()64 PyEval_ReleaseThread(mainstate); in test_repeated_init_and_subinterpreters()76 PyThreadState_Swap(mainstate); in test_repeated_init_and_subinterpreters()80 PyEval_RestoreThread(mainstate); in test_repeated_init_and_subinterpreters()
3470 PyThreadState *substate, *mainstate; in run_in_subinterp() local3478 mainstate = PyThreadState_Get(); in run_in_subinterp()3487 PyThreadState_Swap(mainstate); in run_in_subinterp()3494 PyThreadState_Swap(mainstate); in run_in_subinterp()