Home
last modified time | relevance | path

Searched refs:autoTLSkey (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Python/
Dpystate.c50 static int autoTLSkey = -1; variable
447 if (autoInterpreterState && PyThread_get_key_value(autoTLSkey) == tstate) in PyThreadState_Delete()
448 PyThread_delete_key_value(autoTLSkey); in PyThreadState_Delete()
463 if (autoInterpreterState && PyThread_get_key_value(autoTLSkey) == tstate) in PyThreadState_DeleteCurrent()
464 PyThread_delete_key_value(autoTLSkey); in PyThreadState_DeleteCurrent()
715 autoTLSkey = PyThread_create_key(); in _PyGILState_Init()
716 if (autoTLSkey == -1) in _PyGILState_Init()
719 assert(PyThread_get_key_value(autoTLSkey) == NULL); in _PyGILState_Init()
734 PyThread_delete_key(autoTLSkey); in _PyGILState_Fini()
735 autoTLSkey = -1; in _PyGILState_Fini()
[all …]
/external/python/cpython2/Python/
Dpystate.c40 static int autoTLSkey = 0; variable
303 if (autoInterpreterState && PyThread_get_key_value(autoTLSkey) == tstate) in PyThreadState_Delete()
304 PyThread_delete_key_value(autoTLSkey); in PyThreadState_Delete()
318 if (autoInterpreterState && PyThread_get_key_value(autoTLSkey) == tstate) in PyThreadState_DeleteCurrent()
319 PyThread_delete_key_value(autoTLSkey); in PyThreadState_DeleteCurrent()
527 autoTLSkey = PyThread_create_key(); in _PyGILState_Init()
529 assert(PyThread_get_key_value(autoTLSkey) == NULL); in _PyGILState_Init()
538 PyThread_delete_key(autoTLSkey); in _PyGILState_Fini()
570 if (PyThread_set_key_value(autoTLSkey, (void *)tstate) < 0) in _PyGILState_NoteThreadState()
583 return (PyThreadState *)PyThread_get_key_value(autoTLSkey); in PyGILState_GetThisThreadState()
[all …]
/external/python/cpython2/Misc/
Dvalgrind-python.supp66 Suppress leaking the autoTLSkey. This looks like it shouldn't leak though.
/external/python/cpython3/Misc/
Dvalgrind-python.supp66 Suppress leaking the autoTLSkey. This looks like it shouldn't leak though.