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 () |
|
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.
|
|
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.
|
|
Put 'statistics' method-label in process's stack and schedule process one pearl_time.
|
|
|