Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

RCRegion.h File Reference

Describes RCRegion, which provides compatability with the OPEN-R type of the same name. More...

#include "Shared/ReferenceCounter.h"
#include "ProcessID.h"
#include "IPC/Thread.h"
#include <sys/types.h>
#include <cstdio>
#include <map>
#include <exception>
Include dependency graph for RCRegion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RCRegion
 provides compatability with the OPEN-R type of the same name More...
struct  RCRegion::Identifier
 contains all information needed to attach this region from a different process More...

Namespaces

namespace  plist
 

A collection of classes to implement the Propery List data storage format, a XML standard used by Apple and others.


Defines

#define SYSV_SHM   2
 If TEKKOTSU_SHM_STYLE is set to SYSV_SHM, SysV style shared memory will be used (shmget, shmctl, shmat, shmdt, ...) SysV style seems to stick around following a program crash, and can't be unlinked pre-emptively while still in use. Since it appears many systems also limit the number of shared memory regions (via a sysctl configuration), leaking regions following repeated crashes during development gets annoying.
#define NO_SHM   3
 If TEKKOTSU_SHM_STYLE is set to NO_SHM, all shared memory operations become straight new/delete's; this restricts the program to using threads in a single process.
#define TEKKOTSU_SHM_STYLE   NO_SHM
 Can be set to one of POSIX_SHM, SYSV_SHM, or NO_SHM.

Detailed Description

Describes RCRegion, which provides compatability with the OPEN-R type of the same name.

Author:
ejt (Creator)

Definition in file RCRegion.h.


Define Documentation

#define NO_SHM   3

If TEKKOTSU_SHM_STYLE is set to NO_SHM, all shared memory operations become straight new/delete's; this restricts the program to using threads in a single process.

Definition at line 46 of file RCRegion.h.

#define SYSV_SHM   2

If TEKKOTSU_SHM_STYLE is set to SYSV_SHM, SysV style shared memory will be used (shmget, shmctl, shmat, shmdt, ...) SysV style seems to stick around following a program crash, and can't be unlinked pre-emptively while still in use. Since it appears many systems also limit the number of shared memory regions (via a sysctl configuration), leaking regions following repeated crashes during development gets annoying.

Definition at line 43 of file RCRegion.h.

#define TEKKOTSU_SHM_STYLE   NO_SHM

Can be set to one of POSIX_SHM, SYSV_SHM, or NO_SHM.

Definition at line 49 of file RCRegion.h.


Tekkotsu v5.1CVS
Generated Mon May 9 04:59:01 2016 by Doxygen 1.6.3