/external/python/cpython3/Python/ |
D | pystate.c | 36 #define _PyRuntimeGILState_GetThreadState(gilstate) \ argument 37 ((PyThreadState*)_Py_atomic_load_relaxed(&(gilstate)->tstate_current)) 38 #define _PyRuntimeGILState_SetThreadState(gilstate, value) \ argument 39 _Py_atomic_store_relaxed(&(gilstate)->tstate_current, \ 43 static PyThreadState *_PyGILState_GetThisThreadState(struct _gilstate_runtime_state *gilstate); 67 runtime->gilstate.check_enabled = 1; in _PyRuntimeState_Init_impl() 72 runtime->gilstate.autoTSSkey = initial; in _PyRuntimeState_Init_impl() 168 struct _gilstate_runtime_state *gilstate, PyThreadState* tstate); 344 _PyThreadState_Swap(&runtime->gilstate, NULL); in PyInterpreterState_Delete() 383 struct _gilstate_runtime_state *gilstate = &runtime->gilstate; in _PyInterpreterState_DeleteExceptMain() local [all …]
|
D | ceval.c | 387 struct _gilstate_runtime_state *gilstate = &tstate->interp->runtime->gilstate; in PyEval_AcquireThread() local 388 if (_PyThreadState_Swap(gilstate, tstate) != NULL) { in PyEval_AcquireThread() 399 PyThreadState *new_tstate = _PyThreadState_Swap(&runtime->gilstate, NULL); in PyEval_ReleaseThread() 452 PyThreadState *tstate = _PyThreadState_Swap(&runtime->gilstate, NULL); in PyEval_SaveThread() 469 struct _gilstate_runtime_state *gilstate = &tstate->interp->runtime->gilstate; in PyEval_RestoreThread() local 470 _PyThreadState_Swap(gilstate, tstate); in PyEval_RestoreThread() 879 if (_PyThreadState_Swap(&runtime->gilstate, NULL) != tstate) { in eval_frame_handle_pending() 888 if (_PyThreadState_Swap(&runtime->gilstate, tstate) != NULL) { in eval_frame_handle_pending()
|
D | pylifecycle.c | 1549 runtime->gilstate.check_enabled = 0; in new_interpreter()
|
/external/python/cpython3/Modules/ |
D | readline.c | 901 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_startup_hook() local 903 PyGILState_Release(gilstate); in on_startup_hook() 916 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_pre_input_hook() local 918 PyGILState_Release(gilstate); in on_pre_input_hook() 933 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_completion_display_matches_hook() local 961 PyGILState_Release(gilstate); in on_completion_display_matches_hook() 994 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_completion() local 1016 PyGILState_Release(gilstate); in on_completion() 1033 PyGILState_STATE gilstate = PyGILState_Ensure(); in flex_complete() local 1066 PyGILState_Release(gilstate); in flex_complete()
|
/external/python/cpython3/Include/internal/ |
D | pycore_pystate.h | 55 return (PyThreadState*)_Py_atomic_load_relaxed(&runtime->gilstate.tstate_current); in _PyRuntimeState_GetThreadState() 118 struct _gilstate_runtime_state *gilstate,
|
D | pycore_runtime.h | 99 struct _gilstate_runtime_state gilstate; member
|
/external/python/cpython3/Modules/_sqlite/ |
D | connection.c | 903 PyGILState_STATE gilstate; in _authorizer_callback() local 905 gilstate = PyGILState_Ensure(); in _authorizer_callback() 934 PyGILState_Release(gilstate); in _authorizer_callback() 942 PyGILState_STATE gilstate; in _progress_handler() local 944 gilstate = PyGILState_Ensure(); in _progress_handler() 961 PyGILState_Release(gilstate); in _progress_handler() 970 PyGILState_STATE gilstate; in _trace_callback() local 972 gilstate = PyGILState_Ensure(); in _trace_callback() 990 PyGILState_Release(gilstate); in _trace_callback() 1375 PyGILState_STATE gilstate; in pysqlite_collation_callback() local [all …]
|
/external/python/cpython2/Modules/ |
D | readline.c | 727 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_hook() local 746 PyGILState_Release(gilstate); in on_hook() 786 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_completion_display_matches_hook() local 817 PyGILState_Release(gilstate); in on_completion_display_matches_hook() 852 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_completion() local 874 PyGILState_Release(gilstate); in on_completion()
|
/external/python/cpython2/Modules/_sqlite/ |
D | connection.c | 932 PyGILState_STATE gilstate; in _authorizer_callback() local 934 gilstate = PyGILState_Ensure(); in _authorizer_callback() 958 PyGILState_Release(gilstate); in _authorizer_callback() 968 PyGILState_STATE gilstate; in _progress_handler() local 970 gilstate = PyGILState_Ensure(); in _progress_handler() 989 PyGILState_Release(gilstate); in _progress_handler() 1353 PyGILState_STATE gilstate; in pysqlite_collation_callback() local 1359 gilstate = PyGILState_Ensure(); in pysqlite_collation_callback() 1397 PyGILState_Release(gilstate); in pysqlite_collation_callback()
|
/external/python/cpython3/Programs/ |
D | _testembed.c | 56 PyGILState_STATE gilstate; in test_repeated_init_and_subinterpreters() local 66 gilstate = PyGILState_Ensure(); in test_repeated_init_and_subinterpreters() 78 PyGILState_Release(gilstate); in test_repeated_init_and_subinterpreters()
|
/external/python/cpython2/Doc/c-api/ |
D | init.rst | 946 arbitrary C threads. Instead, use the :ref:`PyGILState API<gilstate>`.
|
/external/python/cpython3/Doc/c-api/ |
D | init.rst | 1427 arbitrary C threads. Instead, use the :ref:`PyGILState API<gilstate>`.
|