summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-07 18:28:03 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-07 18:28:03 (GMT)
commited9dcc10f87946088bc7d71292764e3f1bcc979b (patch)
tree2d7ff86d3e5575bbbb615c9fb97409a3d1c76328 /Doc/api
parentcdf6af12330cea3d6d5fd21c5a77015a83291858 (diff)
downloadcpython-ed9dcc10f87946088bc7d71292764e3f1bcc979b.zip
cpython-ed9dcc10f87946088bc7d71292764e3f1bcc979b.tar.gz
cpython-ed9dcc10f87946088bc7d71292764e3f1bcc979b.tar.bz2
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.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/api.tex8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index b43438d..93e061c 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -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}