bpo-40268: Rename _PyInterpreterState_GET_UNSAFE() by vstinner · Pull Request #19509 · python/cpython
_PyImport_AcquireLock(); }
run_at_forkers(_PyInterpreterState_GET_UNSAFE()->after_forkers_parent, 0); run_at_forkers(_PyInterpreterState_GET()->after_forkers_parent, 0); }
void
run_at_forkers(_PyInterpreterState_GET_UNSAFE()->after_forkers_child, 0); run_at_forkers(_PyInterpreterState_GET()->after_forkers_child, 0); }
static int
if (register_at_forker(&interp->before_forkers, before)) { return NULL;
if (_PyInterpreterState_GET_UNSAFE() != PyInterpreterState_Main()) { if (_PyInterpreterState_GET() != PyInterpreterState_Main()) { PyErr_SetString(PyExc_RuntimeError, "fork not supported for subinterpreters"); return NULL; }
if (_PyInterpreterState_GET_UNSAFE() != PyInterpreterState_Main()) { if (_PyInterpreterState_GET() != PyInterpreterState_Main()) { PyErr_SetString(PyExc_RuntimeError, "fork not supported for subinterpreters"); return NULL; }
if (_PyInterpreterState_GET_UNSAFE() != PyInterpreterState_Main()) { if (_PyInterpreterState_GET() != PyInterpreterState_Main()) { PyErr_SetString(PyExc_RuntimeError, "fork not supported for subinterpreters"); return NULL; }