Home
last modified time | relevance | path

Searched refs:internals_ptr (Results 1 – 1 of 1) sorted by relevance

/external/python/pybind11/include/pybind11/detail/
Dinternals.h284 auto *&internals_ptr = *internals_pp; in get_internals() local
285 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 …]