The ROme OpTimistic Simulator  2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
msgchannel.c File Reference

A (M, 1) channel for messages. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arch/atomic.h>
#include <core/core.h>
#include <communication/communication.h>
#include <datatypes/list.h>
#include <datatypes/msgchannel.h>
#include <mm/mm.h>
+ Include dependency graph for msgchannel.c:

Go to the source code of this file.

Macros

#define M_WRITE   0
 
#define M_READ   1
 

Functions

static void switch_channel_buffers (msg_channel *mc)
 
void fini_channel (msg_channel *mc)
 
msg_channelinit_channel (void)
 
void insert_msg (msg_channel *mc, msg_t *msg)
 
void * get_msg (msg_channel *mc)
 

Detailed Description

A (M, 1) channel for messages.

This module implements an (M, 1) channel to transfer message pointers.

This file is part of ROOT-Sim (ROme OpTimistic Simulator).

ROOT-Sim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; only version 3 of the License applies.

ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ROOT-Sim; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Author
Francesco Quaglia
Alessandro Pellegrini

Definition in file msgchannel.c.