Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 30, 2018

  • Replace GET_TSTATE() with PyThreadState_GET()
  • Replace GET_INTERP_STATE() with _PyInterpreterState_GET_UNSAFE()
  • Replace direct access to _PyThreadState_Current with
    PyThreadState_GET()
  • Replace _PyThreadState_Current with
    _PyRuntime.gilstate.tstate_current
  • Rename SET_TSTATE() to _PyThreadState_SET(), name more
    consistent with _PyThreadState_GET()
  • Update outdated comments

https://bugs.python.org/issue35081

* Replace GET_TSTATE() with PyThreadState_GET()
* Replace GET_INTERP_STATE() with _PyInterpreterState_GET_UNSAFE()
* Replace direct access to _PyThreadState_Current with
  PyThreadState_GET()
* Replace _PyThreadState_Current with
  _PyRuntime.gilstate.tstate_current
* Rename SET_TSTATE() to _PyThreadState_SET(), name more
  consistent with _PyThreadState_GET()
* Update outdated comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants