modm API documentation
TestingThreadRestart Class Reference
Inheritance diagram for TestingThreadRestart:
modm::pt::Protothread

Public Member Functions

virtual bool run ()
 
bool isRunning () const
 Check if the protothread is still running. More...
 
void restart ()
 Restart protothread.
 
void stop ()
 Stop the protothread from running. More...
 

Public Attributes

uint8_t state
 
bool restartCondition
 

Member Function Documentation

bool modm::pt::Protothread::isRunning ( ) const
inheritedinline

Check if the protothread is still running.

Returns
true if the protothread is running or waiting, false if it has ended or exited.
void modm::pt::Protothread::stop ( )
inheritedinline

Stop the protothread from running.

Happens automatically at PT_END.

Note
This differs from the Dunkels' original protothread behavior (his restart automatically, which is usually not what you want).

The documentation for this class was generated from the following file: