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
 Identifier for the database for which this context was created, or by which it has been taken over.
size_t next
 The LWLock associated with this memory context.
size_t limit
 Offset, of 1st byte beyond this struct.
struct ShmemCtlmemctl
void * memory [0]
 The rest of the chunk, from which memory is allocated.

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().


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