]> granicus.if.org Git - python/commitdiff
Clarify that the Python interpreter lock need *not* be held by
authorGuido van Rossum <guido@python.org>
Fri, 7 Aug 1998 18:28:03 +0000 (18:28 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 7 Aug 1998 18:28:03 +0000 (18:28 +0000)
PyInterpreterState_New() and PyThreadState_New() -- but that you may
use it to serialize calls to them.

Doc/api/api.tex

index b43438dd7a9a06e42e204bbc8c3dc5f54c9f40e5..93e061c458fc53c136862c65d4c5ab685d94bdf7 100644 (file)
@@ -2914,8 +2914,9 @@ is enabled at compile time, and must be called only when the
 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 @@ call to \cfunction{PyInterpreterState_Clear()}.
 
 \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}