Nol.A SDK Library 26.11.2
For IoT System Software Development
Loading...
Searching...
No Matches
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.
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.

Detailed Description

Protothread Porting for Nol.A-SDK.

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