junyixie <xie.ju...@outlook.com> added the comment:
PyInterpreterState_New call and use PyThreadState *tstate = _PyThreadState_GET(); _PyRuntime.gilstate.autoTSSkey has to be initialized before pthread_getspecific() or pthread_setspecific() can be used. _PyRuntime.gilstate.autoTSSkey create in _PyGILState_Init. PyInterpreterState_New called before _PyGILState_Init. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43311> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com