[Python-checkins] r66874 - python/trunk/Doc/c-api/init.rst
benjamin.peterson
python-checkins at python.org
Sat Oct 11 00:23:41 CEST 2008
Author: benjamin.peterson
Date: Sat Oct 11 00:23:41 2008
New Revision: 66874
Log:
PyGILState_Acquire -> PyGILState_Ensure
Modified:
python/trunk/Doc/c-api/init.rst
Modified: python/trunk/Doc/c-api/init.rst
==============================================================================
--- python/trunk/Doc/c-api/init.rst (original)
+++ python/trunk/Doc/c-api/init.rst Sat Oct 11 00:23:41 2008
@@ -755,11 +755,11 @@
:cmacro:`Py_END_ALLOW_THREADS` macros is acceptable.
The return value is an opaque "handle" to the thread state when
- :cfunc:`PyGILState_Acquire` was called, and must be passed to
+ :cfunc:`PyGILState_Ensure` was called, and must be passed to
:cfunc:`PyGILState_Release` to ensure Python is left in the same state. Even
though recursive calls are allowed, these handles *cannot* be shared - each
- unique call to :cfunc:`PyGILState_Ensure` must save the handle for its call to
- :cfunc:`PyGILState_Release`.
+ unique call to :cfunc:`PyGILState_Ensure` must save the handle for its call
+ to :cfunc:`PyGILState_Release`.
When the function returns, the current thread will hold the GIL. Failure is a
fatal error.
More information about the Python-checkins
mailing list