mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
gh-108014: Add Py_IsFinalizing() function (#108032)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
cc58ec9724
commit
3ff5ef2ad3
9 changed files with 24 additions and 9 deletions
|
@ -129,7 +129,7 @@ _PyRuntime_Finalize(void)
|
|||
}
|
||||
|
||||
int
|
||||
_Py_IsFinalizing(void)
|
||||
Py_IsFinalizing(void)
|
||||
{
|
||||
return _PyRuntimeState_GetFinalizing(&_PyRuntime) != NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue