mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
SF patch #906501: Fix typos in pystate.h comments
(Contributed by Greg Chapman.)
This commit is contained in:
parent
2d95f1ad57
commit
4eec95ad2a
1 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ typedef
|
||||||
Py_END_ALLOW_THREADS macros are acceptable.
|
Py_END_ALLOW_THREADS macros are acceptable.
|
||||||
|
|
||||||
The return value is an opaque "handle" to the thread state when
|
The return value is an opaque "handle" to the thread state when
|
||||||
PyGILState_Acquire() was called, and must be passed to
|
PyGILState_Ensure() was called, and must be passed to
|
||||||
PyGILState_Release() to ensure Python is left in the same state. Even
|
PyGILState_Release() to ensure Python is left in the same state. Even
|
||||||
though recursive calls are allowed, these handles can *not* be shared -
|
though recursive calls are allowed, these handles can *not* be shared -
|
||||||
each unique call to PyGILState_Ensure must save the handle for its
|
each unique call to PyGILState_Ensure must save the handle for its
|
||||||
|
|
@ -138,7 +138,7 @@ PyAPI_FUNC(PyGILState_STATE) PyGILState_Ensure(void);
|
||||||
|
|
||||||
/* Release any resources previously acquired. After this call, Python's
|
/* Release any resources previously acquired. After this call, Python's
|
||||||
state will be the same as it was prior to the corresponding
|
state will be the same as it was prior to the corresponding
|
||||||
PyGILState_Acquire call (but generally this state will be unknown to
|
PyGILState_Ensure() call (but generally this state will be unknown to
|
||||||
the caller, hence the use of the GILState API.)
|
the caller, hence the use of the GILState API.)
|
||||||
|
|
||||||
Every call to PyGILState_Ensure must be matched by a call to
|
Every call to PyGILState_Ensure must be matched by a call to
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue