summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-05-10 17:48:45 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-05-10 17:48:45 (GMT)
commit4ff7fc49c6ac474545e942348aed90e7730d514e (patch)
tree4350a9f2176a50faa7ba070c337c76dddfa09a20 /Doc
parent311c580539328572045974bc50d9904a03a64e79 (diff)
downloadcpython-4ff7fc49c6ac474545e942348aed90e7730d514e.zip
cpython-4ff7fc49c6ac474545e942348aed90e7730d514e.tar.gz
cpython-4ff7fc49c6ac474545e942348aed90e7730d514e.tar.bz2
#1625509: describe behaviour of import lock
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/imp.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst
index a0e5870..a40c5e5 100644
--- a/Doc/library/imp.rst
+++ b/Doc/library/imp.rst
@@ -114,10 +114,16 @@ This module provides an interface to the mechanisms used to implement the
.. function:: acquire_lock()
- Acquires the interpreter's import lock for the current thread. This lock should
+ Acquire 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.
+ Once a thread has acquired the import lock, the same thread may acquire it
+ again without blocking; the thread must release it once for each time it has
+ acquired it.
+
+ On platforms without threads, this function does nothing.
+
.. versionadded:: 2.3