mads.task
adapted thread to add extra functionality to threads.
-
class
Task(*args, **kwargs)[source]
Bases: threading.Thread
Task are adapted Threads.
-
clear()[source]
clear the ready flag.
-
isSet()[source]
see if the object ready flag is set.
-
join(*args, **kwargs)[source]
join the thread and signal ready.
-
put(func, *args)[source]
put a new function to execute.
-
ready()[source]
signal the event as being ready.
-
run()[source]
run the threads mainloop.
-
stop()[source]
stop the task.
-
wait(sec=180.0)[source]
wait for the task to be ready.