Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ShmAllocator.h File Reference

#include <iostream>
#include <memory>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include "SemaphoreSet.h"
#include "ExceptionBase.h"

Go to the source code of this file.

Namespaces

namespace  ShmAllocator

Defines

#define ALIGN_SEGMENT(n)   (((n-1)|3)+1)
#define MAX(a, b)   ((a) >= (b) ? (a) : (b))
#define ATTR_TO_TYPE(T, A, P)   ((T*)((char*)(P)-offsetof(T,A)))


Define Documentation

#define ALIGN_SEGMENT  )     (((n-1)|3)+1)
 

Align the memory segment to a 4 bytes multiple

#define ATTR_TO_TYPE T,
A,
 )     ((T*)((char*)(P)-offsetof(T,A)))
 

Returns the address of a structure of type T whose member A is at address P

#define MAX a,
 )     ((a) >= (b) ? (a) : (b))
 

Returns the maxiumum between a and b


Generated on Thu Jan 27 10:06:44 2005 for ShmAllocator by doxygen 1.3.6