blob: 39ca061d79007bb8513ff49ade2fae2768b3614d [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001:mod:`dummy_threading` --- Drop-in replacement for the :mod:`threading` module
2==============================================================================
3
4.. module:: dummy_threading
5 :synopsis: Drop-in replacement for the threading module.
6
Éric Araujo29a0b572011-08-19 02:14:03 +02007**Source code:** :source:`Lib/dummy_threading.py`
8
9--------------
Georg Brandl8ec7f652007-08-15 14:28:01 +000010
11This module provides a duplicate interface to the :mod:`threading` module. It
12is meant to be imported when the :mod:`thread` module is not provided on a
13platform.
14
15Suggested usage is::
16
17 try:
18 import threading as _threading
19 except ImportError:
20 import dummy_threading as _threading
21
22Be careful to not use this module where deadlock might occur from a thread
23being created that blocks waiting for another thread to be created. This often
24occurs with blocking I/O.
25