Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

process.h File Reference


Detailed Description

Header file for the Contiki process interface.

Author:
Adam Dunkels <adam@sics.se>

#include "pt.h"
#include "cc.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 PROCESS_BEGIN()
 Define the beginning of a process.

#define PROCESS_END()
 Define the end of a process.

#define PROCESS_WAIT_EVENT()
 Wait for an event to be posted to the process.

#define PROCESS_WAIT_EVENT_UNTIL(c)
 Wait for an event to be posted to the process, with an extra condition.

#define PROCESS_YIELD()
 Yield the currently running process.

#define PROCESS_YIELD_UNTIL(c)
 Yield the currently running process until a condition occurs.

#define PROCESS_WAIT_UNTIL(c)
 Wait for a condition to occur.

#define PROCESS_EXIT()
 Exit the currently running process.

#define PROCESS_SPAWN(pt, thread)
 Spawn a protothread from the process.

#define PROCESS_PAUSE()
 Yield the process for a short while.

#define PROCESS_THREAD(name, ev, data)
 Define the body of a process.

#define PROCESS_NAME(name)
 Declare the name of a process.

#define PROCESS(name, strname)
 Declare a process.

#define PROCESS_CURRENT()
 Get a pointer to the currently running process.


Functions

int process_post (struct process *p, process_event_t ev, process_data_t data)
 Post an asynchronous event.

int process_run (void)
 Process one event from the event queue.


Generated on Wed Jul 6 01:19:02 2005 for Contiki/ESB by doxygen 1.3.6