Commit 477c152e authored by Stefan Behnel's avatar Stefan Behnel Committed by GitHub

Merge pull request #2931 from ZackerySpytz/GH2926-PyGILState_Check

Add PyGILState_Check to Includes/cpython/pystate.pxd
parents d844746d 569f0756
...@@ -83,6 +83,9 @@ cdef extern from "Python.h": ...@@ -83,6 +83,9 @@ cdef extern from "Python.h":
# PyGILState_Release on the same thread. # PyGILState_Release on the same thread.
void PyGILState_Release(PyGILState_STATE) void PyGILState_Release(PyGILState_STATE)
# Return 1 if the current thread holds the GIL and 0 otherwise.
int PyGILState_Check()
# Routines for advanced debuggers, requested by David Beazley. # Routines for advanced debuggers, requested by David Beazley.
# Don't use unless you know what you are doing! # Don't use unless you know what you are doing!
PyInterpreterState * PyInterpreterState_Head() PyInterpreterState * PyInterpreterState_Head()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment