diff Doc/api/api.tex @ 8881:febca6b1827d legacy-trunk

Clarify that the Python interpreter lock need *not* be held by PyInterpreterState_New() and PyThreadState_New() -- but that you may use it to serialize calls to them.
author Guido van Rossum <guido@python.org>
date Fri, 07 Aug 1998 18:28:03 +0000
parents ae3e2eaef9b9
children 2b34461ba4a3
line wrap: on
line diff
--- a/Doc/api/api.tex	Fri Aug 07 18:07:36 1998 +0000
+++ b/Doc/api/api.tex	Fri Aug 07 18:28:03 1998 +0000
@@ -2914,8 +2914,9 @@
 interpreter lock has been created.
 
 \begin{cfuncdesc}{PyInterpreterState*}{PyInterpreterState_New}{}
-Create a new interpreter state object.  The interpreter lock must be
-held.
+Create a new interpreter state object.  The interpreter lock need not
+be held, but may be held if it is necessary to serialize calls to this
+function.
 \end{cfuncdesc}
 
 \begin{cfuncdesc}{void}{PyInterpreterState_Clear}{PyInterpreterState *interp}
@@ -2931,7 +2932,8 @@
 
 \begin{cfuncdesc}{PyThreadState*}{PyThreadState_New}{PyInterpreterState *interp}
 Create a new thread state object belonging to the given interpreter
-object.  The interpreter lock must be held.
+object.  The interpreter lock need not be held, but may be held if it
+is necessary to serialize calls to this function.
 \end{cfuncdesc}
 
 \begin{cfuncdesc}{void}{PyThreadState_Clear}{PyThreadState *tstate}