Skip to content

Commit b65b0b6

Browse files
Commit
1 parent 789fe32 commit b65b0b6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Doc/c-api/init.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,9 +1126,16 @@ with sub-interpreters:
11261126
11271127
.. c:type:: PyGILState_STATE
11281128
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.
1129+
The type of the value returned by :c:func:`PyGILState_Ensure` and passed to
1130+
:c:func:`PyGILState_Release`.
1131+
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.
11321139
11331140
.. c:function:: PyGILState_STATE PyGILState_Ensure()
11341141

0 commit comments

Comments
 (0)