blob: 874f596b84f1bb8edffe5624b3e12062f941f921 [file] [log] [blame]
Fred Drake740f8002002-12-30 23:00:36 +00001\section{\module{dummy_threading} ---
Guido van Rossumad50ca92002-12-30 22:30:22 +00002 Drop-in replacement for the \module{threading} module}
3
4\declaremodule[dummythreading]{standard}{dummy_threading}
Fred Drake740f8002002-12-30 23:00:36 +00005\modulesynopsis{Drop-in replacement for the \refmodule{threading} module.}
Guido van Rossumad50ca92002-12-30 22:30:22 +00006
Fred Drake740f8002002-12-30 23:00:36 +00007This module provides a duplicate interface to the
8\refmodule{threading} module. It is meant to be imported when the
9\refmodule{thread} module is not provided on a platform.
Guido van Rossumad50ca92002-12-30 22:30:22 +000010
11Suggested usage is:
12
13\begin{verbatim}
14try:
15 import threading as _threading
16except ImportError:
17 import dummy_threading as _threading
18\end{verbatim}
19
20Be careful to not use this module where deadlock might occur from a thread
21being created that blocks waiting for another thread to be created. This
22often occurs with blocking I/O.