Commit 4ff7fc49 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

#1625509: describe behaviour of import lock

parent 311c5805
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment