![]() |
SDK
23.9.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. More... | |
Declaration and definition | |
| #define | PT_BEGIN() |
| Declare the start of a protothread inside the Protothread::run() function implementing the protothread. More... | |
| #define | PT_END() |
| Declare the end of a protothread. More... | |
Blocked wait | |
| #define | PT_WAIT_UNTIL(condition) |
| Block and wait until condition is true. More... | |
| #define | PT_WAIT_WHILE(cond) |
| Block and wait while condition is true. More... | |
Hierarchical protothreads | |
| #define | PT_WAIT_THREAD(thread) |
| Block and wait until a child protothread completes. More... | |
| #define | PT_SPAWN(thread) |
| Spawn a child protothread and wait until it exits. More... | |
Exiting and restarting | |
| #define | PT_RESTART() |
| Restart the protothread. More... | |
| #define | PT_EXIT() |
| Exit the protothread. More... | |
Calling a protothread | |
| #define | PT_SCHEDULE(thread) |
| Schedule a protothread. More... | |
Yielding from a protothread | |
| #define | PT_YIELD() |
| Yield from the current protothread. More... | |
| #define | PT_YIELD_UNTIL(cond) |
| Yield from the protothread until a condition occurs. More... | |
Protothread Porting for Nol.A-SDK.
1.8.17