blob: 0b2cb179a60e35f7bc33c761354d9dcdc5162e88 [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001
2:mod:`dummy_thread` --- Drop-in replacement for the :mod:`thread` module
3========================================================================
4
5.. module:: dummy_thread
6 :synopsis: Drop-in replacement for the thread module.
7
8
9This module provides a duplicate interface to the :mod:`thread` module. It is
10meant to be imported when the :mod:`thread` module is not provided on a
11platform.
12
13Suggested usage is::
14
15 try:
16 import thread as _thread
17 except ImportError:
18 import dummy_thread as _thread
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 often
22occurs with blocking I/O.
23