Searched refs:tstate (Results 1 - 5 of 5) sorted by relevance

/gem5/ext/pybind11/include/pybind11/detail/
H A Dinternals.h109 PYBIND11_TLS_KEY_INIT(tstate);
264 PyThreadState *tstate = PyThreadState_Get(); local
266 internals_ptr->tstate = PyThread_tss_alloc();
267 if (!internals_ptr->tstate || PyThread_tss_create(internals_ptr->tstate))
269 PyThread_tss_set(internals_ptr->tstate, tstate);
271 internals_ptr->tstate = PyThread_create_key();
272 if (internals_ptr->tstate == -1)
274 PyThread_set_key_value(internals_ptr->tstate, tstat
[all...]
/gem5/ext/pybind11/tests/
H A Dtest_call_policies.cpp91 if (auto tstate = py::detail::get_thread_state_unchecked())
92 is_gil_held = (tstate == PyGILState_GetThisThreadState());
/gem5/ext/pybind11/include/pybind11/
H A Dpybind11.h1897 tstate = (PyThreadState *) PYBIND11_TLS_GET_VALUE(internals.tstate);
1899 if (!tstate) {
1903 below. Note we don't save this state with internals.tstate, since we don't
1905 tstate = PyGILState_GetThisThreadState();
1908 if (!tstate) {
1909 tstate = PyThreadState_New(internals.istate);
1911 if (!tstate)
1914 tstate->gilstate_counter = 0;
1915 PYBIND11_TLS_REPLACE_VALUE(internals.tstate, tstat
1965 PyThreadState *tstate = nullptr; member in class:gil_scoped_acquire
1992 PyThreadState *tstate; member in class:gil_scoped_release
[all...]
/gem5/src/arch/sparc/
H A Disa.cc132 memset(tstate, 0, sizeof(tstate));
243 return tstate[tl-1];
432 tstate[tl-1] = val;
655 SERIALIZE_ARRAY(tstate,MaxTL);
731 UNSERIALIZE_ARRAY(tstate,MaxTL);
H A Disa.hh72 uint64_t tstate[MaxTL]; // Trap State member in class:SparcISA::ISA

Completed in 18 milliseconds