Defines | Functions | Variables
shmem_layer.cc File Reference
#include <stdio.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <semaphore.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "shmem_layer.h"
Include dependency graph for shmem_layer.cc:

Go to the source code of this file.

Defines

#define SHMSZ   2500

Functions

int shmem_close ()
int shmem_init (int _nnodes)
int shmem_pre_init ()
int shmem_sniff_packet (char *data, simData_Hdr &sd, unsigned long long &time_us, std::map< int, robo_pose_t > &poses)

Variables

static key_t key2 = 0x1111
static sem_t * mutex
static sem_t * mutex2
static int nnodes
static char * shm
static int shmem_keep_running = 1
static int shmid
static int shmid2
static int * sniff_present

Define Documentation

#define SHMSZ   2500

Definition at line 48 of file shmem_layer.cc.


Function Documentation

int shmem_close ( )

Definition at line 139 of file shmem_layer.cc.

int shmem_init ( int  _nnodes)

Definition at line 68 of file shmem_layer.cc.

int shmem_pre_init ( )

Definition at line 56 of file shmem_layer.cc.

int shmem_sniff_packet ( char *  data,
simData_Hdr sd,
unsigned long long &  time_us,
std::map< int, robo_pose_t > &  poses 
)

Definition at line 107 of file shmem_layer.cc.


Variable Documentation

key_t key2 = 0x1111 [static]

Definition at line 54 of file shmem_layer.cc.

sem_t* mutex [static]

Definition at line 52 of file shmem_layer.cc.

sem_t * mutex2 [static]

Definition at line 52 of file shmem_layer.cc.

int nnodes [static]

Definition at line 53 of file shmem_layer.cc.

char* shm [static]

Definition at line 51 of file shmem_layer.cc.

int shmem_keep_running = 1 [static]

Definition at line 50 of file shmem_layer.cc.

int shmid [static]

Definition at line 53 of file shmem_layer.cc.

int shmid2 [static]

Definition at line 53 of file shmem_layer.cc.

int * sniff_present [static]

Definition at line 53 of file shmem_layer.cc.



ros_rt_wmp_sniffer
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:58