EVE 1.0
process.h File Reference
#include "sys/pt.h"
#include "sys/cc.h"
Include dependency graph for process.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PROCESS_EVENT_NET_FLOW_ON   0x8a
 
Return values
#define PROCESS_ERR_OK   0
 Return value indicating that an operation was successful. More...
 
#define PROCESS_ERR_FULL   1
 Return value indicating that the event queue was full. More...
 
Process protothread functions
#define PROCESS_BEGIN()
 
#define PROCESS_END()
 
#define PROCESS_WAIT_EVENT()
 
#define PROCESS_WAIT_EVENT_UNTIL(c)
 
#define PROCESS_YIELD()
 
#define PROCESS_YIELD_UNTIL(c)
 
#define PROCESS_WAIT_UNTIL(c)
 
#define PROCESS_WAIT_WHILE(c)    PT_WAIT_WHILE(process_pt, c)
 
#define PROCESS_EXIT()
 
#define PROCESS_PT_SPAWN(pt, thread)
 
#define PROCESS_PAUSE()
 
Poll and exit handlers
#define PROCESS_POLLHANDLER(handler)
 
#define PROCESS_EXITHANDLER(handler)
 
Process declaration and definition
#define PROCESS_THREAD(name, ev, data)
 
#define PROCESS_NAME(name)
 
#define PROCESS(name, strname)
 

Functions

Functions called from device drivers
CCIF void process_poll (struct process *p)
 
Functions called by the system and boot-up code
void process_init (void)
 Initialize the process module. More...
 
int process_run (void)
 
CCIF int process_is_running (struct process *p)
 
int process_nevents (void)
 

Functions called from application programs

#define process_abort_all_events(p, ev)   do { } while (process_abort_event(p, ev, NULL))
 
#define PROCESS_CURRENT()
 
#define PROCESS_CONTEXT_BEGIN(p)
 
#define PROCESS_CONTEXT_END(p)   process_current = tmp_current; }
 
CCIF struct process * process_current
 
CCIF void process_start (struct process *p, const char *arg)
 
CCIF int process_post (struct process *p, process_event_t ev, void *data)
 
CCIF void process_post_synch (struct process *p, process_event_t ev, void *data)
 
CCIF int process_abort_event (struct process *p, process_event_t ev, void **pdata)
 
CCIF void process_exit (struct process *p)
 Cause a process to exit. More...
 
CCIF process_event_t process_alloc_event (void)
 Allocate a global event number. More...
 

Detailed Description

Header file for the Contiki process interface.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file process.h.