blob: 7eb7076c93be5387ad00b66e96dda3b508606ac2 [file] [log] [blame]
Guido van Rossumad50ca92002-12-30 22:30:22 +00001\section{\module{dummy_thread} ---
2 Drop-in replacement for the \module{threading} module}
3
4\declaremodule[dummythreading]{standard}{dummy_threading}
5\modulesynopsis{Drop-in replacement for the threading module.}
6
7This module provides a duplicate interface to the \refmodule{threading} module. It
8is meant to be imported when the \module{threading} module is not provided on a
9platform.
10
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.