Move setting of ioready 'wait' earlier in call chain, to
[python/dscho.git] / Doc / lib / libdummythread.tex
blobf6b4c56636e7c3aa31646bcf5b807c242c2bcbcc
1 \section{\module{dummy_thread} ---
2 Drop-in replacement for the \module{thread} module}
4 \declaremodule[dummythread]{standard}{dummy_thread}
5 \modulesynopsis{Drop-in replacement for the \refmodule{thread} module.}
7 This module provides a duplicate interface to the \refmodule{thread}
8 module. It is meant to be imported when the \refmodule{thread} module
9 is not provided on a platform.
11 Suggested usage is:
13 \begin{verbatim}
14 try:
15 import thread as _thread
16 except ImportError:
17 import dummy_thread as _thread
18 \end{verbatim}
20 Be careful to not use this module where deadlock might occur from a thread
21 being created that blocks waiting for another thread to be created. This
22 often occurs with blocking I/O.