Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Dpystate.c46 runtime->gilstate.check_enabled = 1; in _PyRuntimeState_Init_impl()
51 runtime->gilstate.autoTSSkey = initial; in _PyRuntimeState_Init_impl()
633 if (_PyRuntime.gilstate.autoInterpreterState && in PyThreadState_Delete()
634 PyThread_tss_get(&_PyRuntime.gilstate.autoTSSkey) == tstate) in PyThreadState_Delete()
636 PyThread_tss_set(&_PyRuntime.gilstate.autoTSSkey, NULL); in PyThreadState_Delete()
650 if (_PyRuntime.gilstate.autoInterpreterState && in PyThreadState_DeleteCurrent()
651 PyThread_tss_get(&_PyRuntime.gilstate.autoTSSkey) == tstate) in PyThreadState_DeleteCurrent()
653 PyThread_tss_set(&_PyRuntime.gilstate.autoTSSkey, NULL); in PyThreadState_DeleteCurrent()
910 if (PyThread_tss_create(&_PyRuntime.gilstate.autoTSSkey) != 0) { in _PyGILState_Init()
913 _PyRuntime.gilstate.autoInterpreterState = i; in _PyGILState_Init()
[all …]
/external/python/cpython3/Include/internal/
Dpystate.h33 #define _PyThreadState_GetFrame _PyRuntime.gilstate.getframe
37 #define _PyGILState_check_enabled _PyRuntime.gilstate.check_enabled
105 struct _gilstate_runtime_state gilstate; member
/external/python/cpython3/Modules/
Dreadline.c899 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_startup_hook() local
901 PyGILState_Release(gilstate); in on_startup_hook()
914 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_pre_input_hook() local
916 PyGILState_Release(gilstate); in on_pre_input_hook()
931 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_completion_display_matches_hook() local
959 PyGILState_Release(gilstate); in on_completion_display_matches_hook()
992 PyGILState_STATE gilstate = PyGILState_Ensure(); in on_completion() local
1014 PyGILState_Release(gilstate); in on_completion()
1031 PyGILState_STATE gilstate = PyGILState_Ensure(); in flex_complete() local
1064 PyGILState_Release(gilstate); in flex_complete()
/external/python/cpython3/Modules/_sqlite/
Dconnection.c877 PyGILState_STATE gilstate; in _authorizer_callback() local
879 gilstate = PyGILState_Ensure(); in _authorizer_callback()
908 PyGILState_Release(gilstate); in _authorizer_callback()
916 PyGILState_STATE gilstate; in _progress_handler() local
918 gilstate = PyGILState_Ensure(); in _progress_handler()
935 PyGILState_Release(gilstate); in _progress_handler()
944 PyGILState_STATE gilstate; in _trace_callback() local
946 gilstate = PyGILState_Ensure(); in _trace_callback()
964 PyGILState_Release(gilstate); in _trace_callback()
1347 PyGILState_STATE gilstate; in pysqlite_collation_callback() local
[all …]
/external/python/cpython2/Modules/
Dreadline.c727 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/
Dconnection.c932 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.c47 PyGILState_STATE gilstate; in test_repeated_init_and_subinterpreters() local
58 gilstate = PyGILState_Ensure(); in test_repeated_init_and_subinterpreters()
70 PyGILState_Release(gilstate); in test_repeated_init_and_subinterpreters()
/external/python/cpython3/Include/
Dpystate.h364 # define _PyThreadState_Current _PyRuntime.gilstate.tstate_current
/external/python/cpython2/Doc/c-api/
Dinit.rst946 arbitrary C threads. Instead, use the :ref:`PyGILState API<gilstate>`.
/external/python/cpython3/Doc/c-api/
Dinit.rst1235 arbitrary C threads. Instead, use the :ref:`PyGILState API<gilstate>`.