RainbowBS Manual: pt.h File Reference

RainbowBS

RainbowBS Manual  v0.1.0
Written by QWQ([email protected])
pt.h File Reference
#include "lc.h"
Include dependency graph for pt.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  pt
 

Macros

#define PT_WAITING   0
 
#define PT_YIELDED   1
 
#define PT_EXITED   2
 
#define PT_ENDED   3
 
Initialization
#define PT_INIT(pt)
 
Declaration and definition
#define PT_THREAD(name_args)
 
#define PT_BEGIN(pt)
 
#define PT_END(pt)
 
Blocked wait
#define PT_WAIT_UNTIL(pt, condition)
 
#define PT_WAIT_WHILE(pt, cond)
 
Hierarchical protothreads
#define PT_WAIT_THREAD(pt, thread)
 
#define PT_SPAWN(pt, child, thread)
 
Exiting and restarting
#define PT_RESTART(pt)
 
#define PT_EXIT(pt)
 
Calling a protothread
#define PT_SCHEDULE(f)
 
Yielding from a protothread
#define PT_YIELD(pt)
 
#define PT_YIELD_UNTIL(pt, cond)
 Yield from the protothread until a condition occurs. More...
 

Detailed Description

Protothreads implementation.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
Generated by   doxygen 1.8.9.1