S
smisk

threads

Thread management utilities used internally by the monitoring subsystem.

Classes

class smisk.util.threads.Monitor(threading.Thread)

A daemon thread that runs a periodic task at a configurable interval. Subclass and override run() to implement a background monitor.

__init__(frequency=1)
Parametersfrequency (int) — seconds between ticks
run()

Called on each tick. Override in subclasses.

start()

Start the monitor thread as a daemon.

stop()

Signal the thread to stop and wait for it to exit.