• Home
  • Raw
  • Download

Lines Matching refs:_PyRuntime

92 #define GIL_REQUEST _Py_atomic_load_relaxed(&_PyRuntime.ceval.gil_drop_request)
99 &_PyRuntime.ceval.eval_breaker, \
101 _Py_atomic_load_relaxed(&_PyRuntime.ceval.pending.calls_to_do) | \
102 _PyRuntime.ceval.pending.async_exc)
106 _Py_atomic_store_relaxed(&_PyRuntime.ceval.gil_drop_request, 1); \
107 _Py_atomic_store_relaxed(&_PyRuntime.ceval.eval_breaker, 1); \
112 _Py_atomic_store_relaxed(&_PyRuntime.ceval.gil_drop_request, 0); \
119 _Py_atomic_store_relaxed(&_PyRuntime.ceval.pending.calls_to_do, 1); \
120 _Py_atomic_store_relaxed(&_PyRuntime.ceval.eval_breaker, 1); \
125 _Py_atomic_store_relaxed(&_PyRuntime.ceval.pending.calls_to_do, 0); \
131 _PyRuntime.ceval.pending.async_exc = 1; \
132 _Py_atomic_store_relaxed(&_PyRuntime.ceval.eval_breaker, 1); \
137 _PyRuntime.ceval.pending.async_exc = 0; \
161 _PyRuntime.ceval.pending.main_thread = PyThread_get_thread_ident(); in PyEval_InitThreads()
162 if (!_PyRuntime.ceval.pending.lock) in PyEval_InitThreads()
163 _PyRuntime.ceval.pending.lock = PyThread_allocate_lock(); in PyEval_InitThreads()
231 _PyRuntime.ceval.pending.lock = PyThread_allocate_lock(); in PyEval_ReInitThreads()
233 _PyRuntime.ceval.pending.main_thread = PyThread_get_thread_ident(); in PyEval_ReInitThreads()
324 PyThread_type_lock lock = _PyRuntime.ceval.pending.lock; in Py_AddPendingCall()
346 i = _PyRuntime.ceval.pending.last; in Py_AddPendingCall()
348 if (j == _PyRuntime.ceval.pending.first) { in Py_AddPendingCall()
351 _PyRuntime.ceval.pending.calls[i].func = func; in Py_AddPendingCall()
352 _PyRuntime.ceval.pending.calls[i].arg = arg; in Py_AddPendingCall()
353 _PyRuntime.ceval.pending.last = j; in Py_AddPendingCall()
371 if (!_PyRuntime.ceval.pending.lock) { in Py_MakePendingCalls()
373 _PyRuntime.ceval.pending.lock = PyThread_allocate_lock(); in Py_MakePendingCalls()
374 if (_PyRuntime.ceval.pending.lock == NULL) in Py_MakePendingCalls()
379 if (_PyRuntime.ceval.pending.main_thread && in Py_MakePendingCalls()
380 PyThread_get_thread_ident() != _PyRuntime.ceval.pending.main_thread) in Py_MakePendingCalls()
405 PyThread_acquire_lock(_PyRuntime.ceval.pending.lock, WAIT_LOCK); in Py_MakePendingCalls()
406 j = _PyRuntime.ceval.pending.first; in Py_MakePendingCalls()
407 if (j == _PyRuntime.ceval.pending.last) { in Py_MakePendingCalls()
410 func = _PyRuntime.ceval.pending.calls[j].func; in Py_MakePendingCalls()
411 arg = _PyRuntime.ceval.pending.calls[j].arg; in Py_MakePendingCalls()
412 _PyRuntime.ceval.pending.first = (j + 1) % NPENDINGCALLS; in Py_MakePendingCalls()
414 PyThread_release_lock(_PyRuntime.ceval.pending.lock); in Py_MakePendingCalls()
452 return _PyRuntime.ceval.recursion_limit; in Py_GetRecursionLimit()
458 _PyRuntime.ceval.recursion_limit = new_limit; in Py_SetRecursionLimit()
459 _Py_CheckRecursionLimit = _PyRuntime.ceval.recursion_limit; in Py_SetRecursionLimit()
471 int recursion_limit = _PyRuntime.ceval.recursion_limit; in _Py_CheckRecursiveCall()
518 #define _Py_TracingPossible _PyRuntime.ceval.tracing_possible
649 if (!_Py_atomic_load_relaxed(&_PyRuntime.ceval.eval_breaker)) { \ in _PyEval_EvalFrameDefault()
943 if (_Py_atomic_load_relaxed(&_PyRuntime.ceval.eval_breaker)) { in _PyEval_EvalFrameDefault()
968 &_PyRuntime.ceval.pending.calls_to_do)) in _PyEval_EvalFrameDefault()
974 &_PyRuntime.ceval.gil_drop_request)) in _PyEval_EvalFrameDefault()