Nol.A SDK Library
24.11.0
For IoT System Software Development
|
Protothreads C++ implementation. More...
#include <Protothread.hpp>
Public Types | |
enum | state_t { WAITING = 0 , YIELDED = 1 , EXITED = 2 , ENDED = 3 } |
Public Member Functions | |
bool | post () |
Post the Protothread to the scheduler. | |
Protected Member Functions | |
virtual state_t | run ()=0 |
Thread runner function. More... | |
Protothreads C++ implementation.
|
protectedpure virtual |
Thread runner function.
It is a pure virtual function to be implemented by users.
The PT_BEGIN() and PT_END() macros MUST be placed at the begin and the end of this function each other.