librfn
An ad-hoc utility library
Macros | Typedefs | Enumerations
protothreads.h File Reference
#include <assert.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define PT_INIT(pt)
 
#define PT_BEGIN(pt)
 
#define PT_END()
 
#define PT_WAIT()
 
#define PT_WAIT_UNTIL(c)
 
#define PT_YIELD()
 
#define PT_EXIT()   return PT_EXITED
 
#define PT_EXIT_ON(x)
 Conditional exit. More...
 
#define PT_SPAWN(child, thread)
 Call a child thread. More...
 
#define PT_CALL(child, thread)
 Call a child thread synchronously. More...
 

Typedefs

typedef uint16_t pt_t
 

Enumerations

enum  pt_state_t { PT_YIELDED, PT_WAITING, PT_EXITED }