Lines Matching refs:ceval
144 drop_gil(struct _ceval_runtime_state *ceval, PyThreadState *tstate) in drop_gil() argument
146 struct _gil_runtime_state *gil = &ceval->gil; in drop_gil()
166 if (_Py_atomic_load_relaxed(&ceval->gil_drop_request) && tstate != NULL) { in drop_gil()
171 RESET_GIL_DROP_REQUEST(ceval); in drop_gil()
184 take_gil(struct _ceval_runtime_state *ceval, PyThreadState *tstate) in take_gil() argument
190 struct _gil_runtime_state *gil = &ceval->gil; in take_gil()
213 SET_GIL_DROP_REQUEST(ceval); in take_gil()
235 if (_Py_atomic_load_relaxed(&ceval->gil_drop_request)) { in take_gil()
236 RESET_GIL_DROP_REQUEST(ceval); in take_gil()
239 _PyEval_SignalAsyncExc(ceval); in take_gil()
248 _PyRuntime.ceval.gil.interval = microseconds; in _PyEval_SetSwitchInterval()
253 return _PyRuntime.ceval.gil.interval; in _PyEval_GetSwitchInterval()