blob: 62e57080a7829bf4b1ce4412914e65542fb8e265 [file] [log] [blame]
Georg Brandl2067bfd2008-05-25 13:05:15 +00001:mod:`_dummy_thread` --- Drop-in replacement for the :mod:`_thread` module
2==========================================================================
3
4.. module:: _dummy_thread
5 :synopsis: Drop-in replacement for the _thread module.
6
7
8This module provides a duplicate interface to the :mod:`_thread` module. It is
9meant to be imported when the :mod:`_thread` module is not provided on a
10platform.
11
12Suggested usage is::
13
14 try:
15 import _thread
16 except ImportError:
17 import dummy_thread as _thread
18
19Be careful to not use this module where deadlock might occur from a thread being
20created that blocks waiting for another thread to be created. This often occurs
21with blocking I/O.
22