summaryrefslogtreecommitdiff
path: root/src/veil_shmem.h
diff options
context:
space:
mode:
authorMarc Munro2018-05-05 00:25:34 +0000
committerMarc Munro2018-05-05 00:25:34 +0000
commit0243aa5a8ebf56e2a92b99b1fb208ebc5084c87e (patch)
treedf03005cdbd2980c1697263525508923fcb4f4f7 /src/veil_shmem.h
parentb40ecc23447981ca242e9e47964893255d3c6029 (diff)
Update to work with postgresql 10.3HEADmaster
Diffstat (limited to 'src/veil_shmem.h')
-rw-r--r--src/veil_shmem.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/veil_shmem.h b/src/veil_shmem.h
index 5ccd2df..45c5e59 100644
--- a/src/veil_shmem.h
+++ b/src/veil_shmem.h
@@ -2,7 +2,7 @@
* @file veil_shmem.h
* \code
* Author: Marc Munro
- * Copyright (c) 2005 - 2011 Marc Munro
+ * Copyright (c) 2005 - 2018 Marc Munro
* License: BSD
*
* \endcode
@@ -56,12 +56,14 @@ typedef struct MemContext {
* which this context was created,
* or by which it has been taken
* over. */
- LWLockId lwlock; /**< The LWLock associated with this
+ LWLock *lwlock; /**< The LWLock associated with this
* memory context */
size_t next; /**< Offset of 1st free byte */
size_t limit; /**< Offset, of 1st byte beyond this
* struct */
-
+ LWLockPadded *lwlock_tranche; /**< A tranche of lwlocks (only used in
+ * the zeroth MemContext. */
+ int lwlock_idx; /**< Index into the above. */
struct ShmemCtl *memctl; /**< Pointer to shared memory control
* structure. */
void *memory[0]; /**< The rest of the chunk, from which