Data Structures | Defines

pt.h File Reference

#include "lc.h"

Go to the source code of this file.

Data Structures

struct  pt

Defines

#define PT_WAITING   0
#define PT_EXITED   1
#define PT_ENDED   2
#define PT_YIELDED   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.

Detailed Description

Protothreads implementation.

Author:
Adam Dunkels <adam@sics.se>

Definition in file pt.h.