Searched refs:autoTLSkey (Results 1 – 4 of 4) sorted by relevance
50 static int autoTLSkey = -1; variable447 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 …]
40 static int autoTLSkey = 0; variable303 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 …]
66 Suppress leaking the autoTLSkey. This looks like it shouldn't leak though.