|
Nol.A SDK Library 26.11.2
For IoT System Software Development
|
Protothread Porting for Nol.A-SDK. More...
Classes | |
| class | Protothread |
| Protothreads C++ implementation. More... | |
Macros | |
Initialization | |
| #define | PT_INIT() |
| Initialize a protothread. | |
Declaration and definition | |
| #define | PT_BEGIN() |
| Declare the start of a protothread inside the Protothread::run() function implementing the protothread. | |
| #define | PT_END() |
| Declare the end of a protothread. | |
Blocked wait | |
| #define | PT_WAIT_UNTIL(condition) |
| Block and wait until condition is true. | |
| #define | PT_WAIT_WHILE(cond) |
| Block and wait while condition is true. | |
Hierarchical protothreads | |
| #define | PT_WAIT_THREAD(thread) |
| Block and wait until a child protothread completes. | |
| #define | PT_SPAWN(thread) |
| Spawn a child protothread and wait until it exits. | |
Exiting and restarting | |
| #define | PT_RESTART() |
| Restart the protothread. | |
| #define | PT_EXIT() |
| Exit the protothread. | |
Calling a protothread | |
| #define | PT_SCHEDULE(thread) |
| Schedule a protothread. | |
Yielding from a protothread | |
| #define | PT_YIELD() |
| Yield from the current protothread. | |
| #define | PT_YIELD_UNTIL(cond) |
| Yield from the protothread until a condition occurs. | |
Protothread Porting for Nol.A-SDK.