]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
PyGILState_Acquire -> PyGILState_Ensure
authorBenjamin Peterson <benjamin@python.org>
Fri, 10 Oct 2008 22:23:41 +0000 (22:23 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 10 Oct 2008 22:23:41 +0000 (22:23 +0000)
Doc/c-api/init.rst

index dd2c5314f2ce59d0942402b6108676bbe877718a..17fb82eb273e7a4dc083c063d0e70ec347d2ca49 100644 (file)
@@ -755,11 +755,11 @@ created.
    :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.