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.
Functions¶
BoundedSemaphore(*args, **kwargs) |
A factory function that returns a new bounded semaphore. |
Condition(*args, **kwargs) |
Factory function that returns a new condition variable object. |
Event(*args, **kwargs) |
A factory function that returns a new event. |
Lock() |
Dummy implementation of thread.allocate_lock(). |
RLock(*args, **kwargs) |
Factory function that returns a new reentrant lock. |
Semaphore(*args, **kwargs) |
A factory function that returns a new semaphore. |
Timer(*args, **kwargs) |
Factory function to create a Timer object. |
activeCount() |
Return the number of Thread objects currently alive. |
active_count() |
Return the number of Thread objects currently alive. |
currentThread() |
Return the current Thread object, corresponding to the caller’s thread of control. |
current_thread() |
Return the current Thread object, corresponding to the caller’s thread of control. |
enumerate() |
Return a list of all Thread objects currently alive. |
setprofile(func) |
Set a profile function for all threads started from the threading module. |
settrace(func) |
Set a trace function for all threads started from the threading module. |
stack_size([size]) |
Dummy implementation of thread.stack_size(). |