blob: 7dccbc55475aae73c684418af76b35e1e22b7d97 [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
Raymond Hettinger3029aff2011-02-10 08:09:36 +00007**Source code:** :source:`Lib/_dummy_thread.py`
8
Antoine Pitroub43c4ca2017-09-18 22:04:20 +02009.. deprecated:: 3.7
10 Python now always has threading enabled. Please use :mod:`_thread`
11 (or, better, :mod:`threading`) instead.
12
Raymond Hettinger3029aff2011-02-10 08:09:36 +000013--------------
Georg Brandl2067bfd2008-05-25 13:05:15 +000014
Antoine Pitroub43c4ca2017-09-18 22:04:20 +020015This module provides a duplicate interface to the :mod:`_thread` module.
16It was meant to be imported when the :mod:`_thread` module was not provided
17on a platform.
Georg Brandl2067bfd2008-05-25 13:05:15 +000018
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