Module dummy_threading
[hide private]
[frames] | no frames]

Module dummy_threading

Faux ``threading`` version using ``dummy_thread`` instead of ``thread``.

The module ``_dummy_threading`` is added to ``sys.modules`` in order to not have ``threading`` considered imported. Had ``threading`` been directly imported it would have made all subsequent imports succeed regardless of whether ``thread`` was available which is not desired.

:Author: Brett Cannon :Contact: brett@python.org

XXX: Try to get rid of ``_dummy_threading``.

Classes [hide private]
Thread
local
Functions [hide private]
 
BoundedSemaphore(*args, **kwargs)
 
Condition(*args, **kwargs)
 
Event(*args, **kwargs)
 
Lock()
Dummy implementation of thread.allocate_lock().
 
RLock(*args, **kwargs)
 
Semaphore(*args, **kwargs)
 
Timer(*args, **kwargs)
 
activeCount()
 
currentThread()
 
enumerate()
 
setprofile(func)
 
settrace(func)
 
stack_size(size=None)
Dummy implementation of thread.stack_size().

Imports: threading, __all__