basicsharedmemqueue.cpp File Reference

#include "basicsharedmemqueue.h"
#include <BasicUtils/BasicException.h>
#include <sys/shm.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <unistd.h>
#include <string>

Include dependency graph for basicsharedmemqueue.cpp:


Defines

#define MIN(x, y)   (x < y ? x : y)
#define MAX(x, y)   (x > y ? x : y)
#define FMOD(x, y)   (x < y ? x : (x) - (y))
#define BUF_SPACE   (FMOD((control->size - control->write) + control->read - 1, control->size))
#define BUF_FILLED   (FMOD((control->size - control->read) + control->write, control->size))
#define SEM_LOCK   if (control && control->host_attached) sem.lock();
#define SEM_UNLOCK   if (control && control->host_attached) sem.unlock();

Functions

int circularwrite (unsigned char *dest, size_t size, const unsigned char *src, size_t start, size_t n)
int circularread (unsigned char *dest, const unsigned char *src, size_t size, size_t start, size_t n)

Define Documentation

#define MIN x,
 )     (x < y ? x : y)
 

#define MAX x,
 )     (x > y ? x : y)
 

#define FMOD x,
 )     (x < y ? x : (x) - (y))
 

#define BUF_SPACE   (FMOD((control->size - control->write) + control->read - 1, control->size))
 

#define BUF_FILLED   (FMOD((control->size - control->read) + control->write, control->size))
 

#define SEM_LOCK   if (control && control->host_attached) sem.lock();
 

#define SEM_UNLOCK   if (control && control->host_attached) sem.unlock();
 


Function Documentation

int circularwrite unsigned char *  dest,
size_t  size,
const unsigned char *  src,
size_t  start,
size_t  n
 

int circularread unsigned char *  dest,
const unsigned char *  src,
size_t  size,
size_t  start,
size_t  n
 


Generated on Wed Apr 5 20:58:10 2006 for Sesame by  doxygen 1.4.6