SIGN IN SIGN UP

bpo-39877: _PyRuntimeState.finalizing becomes atomic (GH-18816)

Convert _PyRuntimeState.finalizing field to an atomic variable:

* Rename it to _finalizing
* Change its type to _Py_atomic_address
* Add _PyRuntimeState_GetFinalizing() and _PyRuntimeState_SetFinalizing()
  functions
* Remove _Py_CURRENTLY_FINALIZING() function: replace it with testing
  directly _PyRuntimeState_GetFinalizing() value

Convert _PyRuntimeState_GetThreadState() to static inline function.
V
Victor Stinner committed
7b3c252dc7f44d4bdc4c7c82d225ebd09c78f520
Parent: 5572870
Committed by GitHub <noreply@github.com> on 3/6/2020, 11:24:23 PM