Searched refs:internals_ptr (Results 1 – 1 of 1) sorted by relevance
284 auto *&internals_ptr = *internals_pp; in get_internals() local285 internals_ptr = new internals(); in get_internals()293 internals_ptr->tstate = PyThread_tss_alloc(); in get_internals()294 if (!internals_ptr->tstate || PyThread_tss_create(internals_ptr->tstate)) in get_internals()296 PyThread_tss_set(internals_ptr->tstate, tstate); in get_internals()298 internals_ptr->tstate = PyThread_create_key(); in get_internals()299 if (internals_ptr->tstate == -1) in get_internals()301 PyThread_set_key_value(internals_ptr->tstate, tstate); in get_internals()303 internals_ptr->istate = tstate->interp; in get_internals()306 internals_ptr->registered_exception_translators.push_front(&translate_exception); in get_internals()[all …]