17.8. dummy_threading
— Drop-in replacement for the threading
module¶
Code source : Lib/dummy_threading.py
This module provides a duplicate interface to the threading
module. It
is meant to be imported when the _thread
module is not provided on a
platform.
Utilisation suggérée :
try:
import threading
except ImportError:
import dummy_threading as threading
Soyez prudent de ne pas utiliser ce module lorsqu’un deadlock peut se produire à partir d’un thread en cours de création qui bloque en attentant qu’un autre thread soit créé. Cela se produit souvent avec des I/O bloquants.