SDK  23.9.2
For IoT System Software Development
Classes
Protothread.hpp File Reference

Protothread Porting for Nol.A-SDK. More...

#include <nola-common.h>
#include <lc-addrlabel.h>

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

Detailed Description

Protothread Porting for Nol.A-SDK.

Author
Jongsoo Jeong (CoXlab)
Date
2019. 9. 16.