diff options
Diffstat (limited to 'Python/thread.c')
-rw-r--r-- | Python/thread.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Python/thread.c b/Python/thread.c index b1c0cfe84f2..c2457c4f8fe 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -243,3 +243,14 @@ PyThread_GetInfo(void) PyStructSequence_SET_ITEM(threadinfo, pos++, value); return threadinfo; } + + +void +_PyThread_FiniType(PyInterpreterState *interp) +{ + if (!_Py_IsMainInterpreter(interp)) { + return; + } + + _PyStructSequence_FiniType(&ThreadInfoType); +} |