#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))) |
|
|
Align the memory segment to a 4 bytes multiple |
|
|
Returns the address of a structure of type T whose member A is at address P |
|
|
Returns the maxiumum between a and b |
1.3.6