source: vendor/python/2.5/Doc/lib/libdummythreading.tex

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 750 bytes
Line 
1\section{\module{dummy_threading} ---
2 Drop-in replacement for the \module{threading} module}
3
4\declaremodule[dummythreading]{standard}{dummy_threading}
5\modulesynopsis{Drop-in replacement for the \refmodule{threading} module.}
6
7This 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.
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.
Note: See TracBrowser for help on using the repository browser.