Main Page | Modules | File List | Globals

pt.h File Reference


Detailed Description

Protothreads implementation.

Author:
Adam Dunkels <adam@sics.se>

#include "lc.h"

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define PT_THREAD(name_args)
 Declaration of a protothread.

#define PT_INIT(pt)
 Initialize a protothread.

#define PT_BEGIN(pt)
 Declare the start of a protothread inside the C function implementing the protothread.

#define PT_WAIT_UNTIL(pt, condition)
 Block and wait until condition is true.

#define PT_WAIT_WHILE(pt, cond)
 Block and wait while condition is true.

#define PT_WAIT_THREAD(pt, thread)
 Block and wait until a child protothread completes.

#define PT_SPAWN(pt, thread)
 Spawn a child protothread and wait until it exits.

#define PT_RESTART(pt)
 Restart the protothread.

#define PT_EXIT(pt)
 Exit the protothread.

#define PT_END(pt)
 Declare the end of a protothread.

#define PT_SCHEDULE(f)
 Schedule a protothread.


Generated on Thu Feb 24 11:39:17 2005 for The Protothreads Library 1.0 by doxygen 1.3.6