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

Public Member Functions

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...
 

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: