Commit 569f0756 authored by Zackery Spytz's avatar Zackery Spytz

Add PyGILState_Check to Includes/cpython/pystate.pxd

Closes #2926.
parent 874a7994
...@@ -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