SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 117 Python

bpo-39877: Refactor take_gil() function (GH-18885)

* Remove ceval parameter of take_gil(): get it from tstate.
* Move exit_thread_if_finalizing() call inside take_gil(). Replace
  exit_thread_if_finalizing() with tstate_must_exit(): the caller is
  now responsible to call PyThread_exit_thread().
* Move is_tstate_valid() assertion inside take_gil(). Remove
  is_tstate_valid(): inline code into take_gil().
* Move gil_created() assertion inside take_gil().
V
Victor Stinner committed
85f5a69ae1541271286bb0f0e0303aabf792dd5c
Parent: 363fab8
Committed by GitHub <noreply@github.com> on 3/9/2020, 9:12:04 PM