dummy_thread¶
Drop-in replacement for the thread module.
Meant to be used as a brain-dead substitute so that threaded code does not need to be rewritten for when the thread module is not present.
Suggested usage is:
try:
import thread
except ImportError:
import dummy_thread as thread
Functions¶
allocate_lock() |
Dummy implementation of thread.allocate_lock(). |
exit() |
Dummy implementation of thread.exit(). |
get_ident() |
Dummy implementation of thread.get_ident(). |
interrupt_main() |
Set _interrupt flag to True to have start_new_thread raise KeyboardInterrupt upon exiting. |
stack_size([size]) |
Dummy implementation of thread.stack_size(). |
start_new_thread(function, args[, kwargs]) |
Dummy implementation of thread.start_new_thread(). |