We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 789fe32 commit b65b0b6Copy full SHA for b65b0b6
1 file changed
Doc/c-api/init.rst
@@ -1126,9 +1126,16 @@ with sub-interpreters:
1126
1127
.. c:type:: PyGILState_STATE
1128
1129
- A handle to the thread state when :c:func:`PyGILState_Ensure` was
1130
- called, and must be passed to :c:func:`PyGILState_Release` to ensure Python
1131
- is left in the same state.
+ The type of the value returned by :c:func:`PyGILState_Ensure` and passed to
+ :c:func:`PyGILState_Release`.
+
1132
+ .. c:enumerator:: PyGILState_LOCKED
1133
1134
+ The GIL was already held when :c:func:`PyGILState_Ensure` was called.
1135
1136
+ .. c:enumerator:: PyGILState_UNLOCKED
1137
1138
+ The GIL was not held when :c:func:`PyGILState_Ensure` was called.
1139
1140
.. c:function:: PyGILState_STATE PyGILState_Ensure()
1141
0 commit comments