Home
last modified time | relevance | path

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

/third_party/python/Python/
Dpystate.c37 #define _PyRuntimeGILState_GetThreadState(gilstate) \ argument
38 ((PyThreadState*)_Py_atomic_load_relaxed(&(gilstate)->tstate_current))
39 #define _PyRuntimeGILState_SetThreadState(gilstate, value) \ argument
40 _Py_atomic_store_relaxed(&(gilstate)->tstate_current, \
44 static PyThreadState *_PyGILState_GetThisThreadState(struct _gilstate_runtime_state *gilstate);
71 runtime->gilstate.check_enabled = 1; in _PyRuntimeState_Init_impl()
76 runtime->gilstate.autoTSSkey = initial; in _PyRuntimeState_Init_impl()
178 struct _gilstate_runtime_state *gilstate, PyThreadState* tstate);
387 _PyThreadState_Swap(&runtime->gilstate, NULL); in PyInterpreterState_Delete()
427 struct _gilstate_runtime_state *gilstate = &runtime->gilstate; in _PyInterpreterState_DeleteExceptMain() local
[all …]
Dceval.c453 struct _gilstate_runtime_state *gilstate = &tstate->interp->runtime->gilstate; in PyEval_AcquireThread() local
455 (void)_PyThreadState_Swap(gilstate, tstate); in PyEval_AcquireThread()
457 if (_PyThreadState_Swap(gilstate, tstate) != NULL) { in PyEval_AcquireThread()
469 PyThreadState *new_tstate = _PyThreadState_Swap(&runtime->gilstate, NULL); in PyEval_ReleaseThread()
525 PyThreadState *tstate = _PyThreadState_Swap(&runtime->gilstate, old_tstate); in PyEval_SaveThread()
527 PyThreadState *tstate = _PyThreadState_Swap(&runtime->gilstate, NULL); in PyEval_SaveThread()
549 struct _gilstate_runtime_state *gilstate = &tstate->interp->runtime->gilstate; in PyEval_RestoreThread() local
550 _PyThreadState_Swap(gilstate, tstate); in PyEval_RestoreThread()
1182 if (_PyThreadState_Swap(&runtime->gilstate, NULL) != tstate) { in eval_frame_handle_pending()
1192 (void)_PyThreadState_Swap(&runtime->gilstate, tstate); in eval_frame_handle_pending()
[all …]
Dpylifecycle.c1904 runtime->gilstate.check_enabled = 0; in new_interpreter()
/third_party/python/Modules/
Dreadline.c1021 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_startup_hook() local
1023 PyGILState_Release(gilstate); in on_startup_hook()
1036 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_pre_input_hook() local
1038 PyGILState_Release(gilstate); in on_pre_input_hook()
1053 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_completion_display_matches_hook() local
1081 PyGILState_Release(gilstate); in on_completion_display_matches_hook()
1114 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_completion() local
1136 PyGILState_Release(gilstate); in on_completion()
1153 PyGILState_STATE gilstate = PyGILState_Ensure(); in flex_complete() local
1186 PyGILState_Release(gilstate); in flex_complete()
/third_party/python/Include/internal/
Dpycore_pystate.h62 return (PyThreadState*)_Py_atomic_load_relaxed(&runtime->gilstate.tstate_current); in _PyRuntimeState_GetThreadState()
130 struct _gilstate_runtime_state *gilstate,
Dpycore_runtime.h108 struct _gilstate_runtime_state gilstate; member
/third_party/python/Modules/_sqlite/
Dconnection.c980 PyGILState_STATE gilstate; in _authorizer_callback() local
982 gilstate = PyGILState_Ensure(); in _authorizer_callback()
1011 PyGILState_Release(gilstate); in _authorizer_callback()
1019 PyGILState_STATE gilstate; in _progress_handler() local
1021 gilstate = PyGILState_Ensure(); in _progress_handler()
1038 PyGILState_Release(gilstate); in _progress_handler()
1057 PyGILState_STATE gilstate; in _trace_callback() local
1065 gilstate = PyGILState_Ensure(); in _trace_callback()
1083 PyGILState_Release(gilstate); in _trace_callback()
1526 PyGILState_STATE gilstate; in pysqlite_collation_callback() local
[all …]
/third_party/python/Programs/
D_testembed.c59 PyGILState_STATE gilstate; in test_repeated_init_and_subinterpreters() local
68 gilstate = PyGILState_Ensure(); in test_repeated_init_and_subinterpreters()
80 PyGILState_Release(gilstate); in test_repeated_init_and_subinterpreters()
/third_party/python/Doc/c-api/
Dinit.rst1464 arbitrary C threads. Instead, use the :ref:`PyGILState API<gilstate>`.