MemContext Struct Reference

#include <veil_shmem.h>

Collaboration diagram for MemContext:

Collaboration graph

Detailed Description

MemContexts are large single chunks of shared memory from which smaller allocations may be made

Definition at line 52 of file veil_shmem.h.


Data Fields

Oid db_id
LWLockId lwlock
size_t next
size_t limit
struct ShmemCtlmemctl
void * memory [0]

Field Documentation

LWLockId MemContext::lwlock

Identifier for the database for which this context was created, or by which it has been taken over.

Definition at line 57 of file veil_shmem.h.

Referenced by get_shmem_context().

size_t MemContext::next

The LWLock associated with this memory context Offset of 1st free byte

Definition at line 59 of file veil_shmem.h.

Referenced by do_vl_shmalloc(), and get_shmem_context().

size_t MemContext::limit

Offset, of 1st byte beyond this struct

Definition at line 60 of file veil_shmem.h.

Referenced by get_shmem_context().

void* MemContext::memory[0]

The rest of the chunk, from which memory is allocated

Definition at line 64 of file veil_shmem.h.


The documentation for this struct was generated from the following file:
Generated on Tue Mar 11 10:08:39 2008 for Veil by  doxygen 1.5.4