#include <ngc/core/ngcpp.h>Classes | |
| struct | SHDATA_T |
Functions | |
| int | ngcppShDataAttach (int shared, int n, size_t size, char *erms) |
| int | ngcppShDataClose (void) |
| int | ngcppShDataGetPtr (char **ptr, int id, int len, char *erms) |
| char * | ngcppShDataSetPtr (int id, int *len, char *erms) |
| void | ngcppShDataSwap (int id) |
| int | ngcppShDataValid (int id) |
| int | ngcppShDataInvalid (int id) |
| int | ngcppShDataIsValid (int id) |
Variables | |
| int | ngcppKeyVal = (key_t) 0x01000000 |
| int ngcppShDataAttach | ( | int | shared, |
| int | n, | ||
| size_t | size, | ||
| char * | erms ) |
Attach to a memory data structure. If the shared flag is set the memory area is placed in shared memory.
| int ngcppShDataClose | ( | void | ) |
Remove the attached shared memory data structure.
| int ngcppShDataGetPtr | ( | char ** | ptr, |
| int | id, | ||
| int | len, | ||
| char * | erms ) |
Return a pointer to the mirror of a shared memory data entry identified by id. The parameter len returns the maximum length of the dataset.
| int ngcppShDataInvalid | ( | int | id | ) |
Mark an entry as not containing valid data.
| int ngcppShDataIsValid | ( | int | id | ) |
Return 1 in case the data set contains valid data.
| char * ngcppShDataSetPtr | ( | int | id, |
| int * | len, | ||
| char * | erms ) |
Return in a pointer to the mirror of a shared memory data entry identified by id. The parameter len returns the maximum length of the dataset.
| void ngcppShDataSwap | ( | int | id | ) |
Swap all datasets matching id (id can be or'ed).
| int ngcppShDataValid | ( | int | id | ) |
Mark an entry as containing valid data.
| int ngcppKeyVal = (key_t) 0x01000000 |
Shared memory key