Searched refs:mainstate (Results 1 – 2 of 2) sorted by relevance
46 PyThreadState *mainstate, *substate; in test_repeated_init_and_subinterpreters() local53 mainstate = PyThreadState_Get(); in test_repeated_init_and_subinterpreters()56 PyEval_ReleaseThread(mainstate); in test_repeated_init_and_subinterpreters()68 PyThreadState_Swap(mainstate); in test_repeated_init_and_subinterpreters()72 PyEval_RestoreThread(mainstate); in test_repeated_init_and_subinterpreters()
3089 PyThreadState *substate, *mainstate; in run_in_subinterp() local3095 mainstate = PyThreadState_Get(); in run_in_subinterp()3104 PyThreadState_Swap(mainstate); in run_in_subinterp()3111 PyThreadState_Swap(mainstate); in run_in_subinterp()