#include <veil_datatypes.h>

This object describes and manages shared memory allocated by shmalloc()
Definition at line 152 of file veil_datatypes.h.
Data Fields | |
| ObjType | type |
| This must have the value OBJ_SHMEMCTL. | |
| bool | initialised |
| Set to true once struct is setup. | |
| LWLockId | veil_lwlock |
| int | current_context |
| dynamically allocated LWLock | |
| size_t | total_allocated [2] |
| Total shared memory allocated in chunks in each context. | |
| bool | switching |
| Whether a context-switch is in progress. | |
| MemChunk * | context [2] |
| The first chunks of each context. | |
| TransactionId | xid [2] |
| The transaction id of the transaction that initialised each context: this is used to determine whether there are transactions still runnning that may be using an earlier context. | |
| MemChunk * | context [2] |
| The first chunks of each context. | |
dynamically allocated LWLock
Index of the current context (0 or 1)
Definition at line 156 of file veil_datatypes.h.
| TransactionId ShmemCtl::xid |
The transaction id of the transaction that initialised each context: this is used to determine whether there are transactions still runnning that may be using an earlier context.
Definition at line 163 of file veil_datatypes.h.
1.5.4