]> granicus.if.org Git - python/commitdiff
SF patch #906501: Fix typos in pystate.h comments
authorRaymond Hettinger <python@rcn.com>
Sat, 13 Mar 2004 20:45:47 +0000 (20:45 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 13 Mar 2004 20:45:47 +0000 (20:45 +0000)
(Contributed by Greg Chapman.)

Include/pystate.h

index 63a5cb863dcbff31de316df079c313e5f6efbf52..ff3596908c4e634a872860b58e7a4e76d8a2cfae 100644 (file)
@@ -124,7 +124,7 @@ typedef
    Py_END_ALLOW_THREADS macros are acceptable.
 
    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
    though recursive calls are allowed, these handles can *not* be shared - 
    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
    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.)
 
    Every call to PyGILState_Ensure must be matched by a call to