.stoppable - Generic Stoppable Thread

All pybert threads that support stop or abort derive from this class.

class pybert.threads.stoppable.StoppableThread[source]

Bases: Thread

Thread class with a stop() method.

The thread itself has to check regularly for the stopped() condition.

All PyBERT thread classes are subclasses of this class.

stop()[source]

Called by thread invoker, when thread should be stopped prematurely.

stopped()[source]

Should be called by thread (i.e. - subclass) periodically and, if this function returns True, thread should clean itself up and quit ASAP.