File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments