Messaging System Implementation

Messaging System Implementation
SchemeStation documentation

1 Introduction

The implementation of the messaging system is fairly straightforward; the messaging queues can be held in the address entry struct in the addressing system. In addition to this, only few functions have to be implemented.

Despite of the simplicity of the messaging system, it is convenient to make a separate module, mainly to have a clean interface to the messaging functions.

2 Data structures

The message queue is implemented as a linked list. The list is placed in the in the ActorEntry-struct of the agent that is kept in the hash table of the addressing addressing system (see [Addressing module implementation].)

3 Functions

All the the needed functions were described in [Messaging System Specification]. The interface is described below.

4.1.8 The functions of module Messaging


File messaging.h

C-functions: