summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-12 23:02:21 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-12 23:02:21 (GMT)
commit2294c0d4ecd81d01ddf741fff02cc04bd8de0638 (patch)
tree1e30d22150343825a5bbb7ff3d00f76aaae88f4a /Doc
parentc4f4ca91e112a55b2fac5853718a5f05797f30b5 (diff)
downloadcpython-2294c0d4ecd81d01ddf741fff02cc04bd8de0638.zip
cpython-2294c0d4ecd81d01ddf741fff02cc04bd8de0638.tar.gz
cpython-2294c0d4ecd81d01ddf741fff02cc04bd8de0638.tar.bz2
Cleanup from patch #683257:
Add missing INCREFs and re-indent returns to be consistent. Add \n\ for lines in docstring Add a pathetic test Add docs
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libimp.tex13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/lib/libimp.tex b/Doc/lib/libimp.tex
index 150f5b4..31368f4 100644
--- a/Doc/lib/libimp.tex
+++ b/Doc/lib/libimp.tex
@@ -106,6 +106,19 @@ the process of completing its import (and the imports, if any,
triggered by that).
\end{funcdesc}
+\begin{funcdesc}{acquire_lock}{}
+Acquires the interpreter's import lock for the current thread. This lock
+should be used by import hooks to ensure thread-safety when importing modules.
+On platforms without threads, this function does nothing.
+\versionadded{2.3}
+\end{funcdesc}
+
+\begin{funcdesc}{release_lock}{}
+Release the interpreter's import lock.
+On platforms without threads, this function does nothing.
+\versionadded{2.3}
+\end{funcdesc}
+
The following constants with integer values, defined in this module,
are used to indicate the search result of \function{find_module()}.