schedule.h File Reference

Go to the source code of this file.

Functions

void pearlsend (int dest, int method, int *sp, int len)
int pearlreceive (int *mask, int *sp)
void statistics (int procnr)
int catcherfunc ()


Function Documentation

void pearlsend int  dest,
int  method,
int *  sp,
int  len
 

Send a message to 'dest'. Mask contains the identifier of the remote method. The contents of the message is on the stack, starting at the position 'sp' points to. 'Len' is the length of the message. If the message is sent, first a check if the destination expects the messages is done. If so, the message is written on the destination's stack. If not, the message is put in the destination's message queue.

Parameters:
dest 
method 
sp starting position
len length of message

int pearlreceive int *  mask,
int *  sp
 

Look in the message queue of the pearl_current process if there are messages. If so, check if one of them is expected by the process. If so, duplicate message onto processes stack.

Parameters:
mask 
sp 
Returns:

void statistics int  procnr  ) 
 

Put 'statistics' method-label in process's stack and schedule process one pearl_time.

Parameters:
procnr 
Returns:

int catcherfunc  ) 
 


Generated on Wed Apr 5 21:02:11 2006 for Sesame by  doxygen 1.4.6