104 if (foundDescs || foundBufs || foundIOCV || foundBufCkpt)
107 Assert(foundDescs && foundBufs && foundIOCV && foundBufCkpt);
132 buf->freeNext =
i + 1;
static void pg_atomic_init_u32(volatile pg_atomic_uint32 *ptr, uint32 val)
CkptSortItem * CkptBufferIds
Size BufferManagerShmemSize(void)
WritebackContext BackendWritebackContext
void BufferManagerShmemInit(void)
ConditionVariableMinimallyPadded * BufferIOCVArray
BufferDescPadded * BufferDescriptors
static BufferDesc * GetBufferDescriptor(uint32 id)
#define FREENEXT_END_OF_LIST
static void ClearBufferTag(BufferTag *tag)
static ConditionVariable * BufferDescriptorGetIOCV(const BufferDesc *bdesc)
static LWLock * BufferDescriptorGetContentLock(const BufferDesc *bdesc)
void WritebackContextInit(WritebackContext *context, int *max_pending)
#define TYPEALIGN(ALIGNVAL, LEN)
#define Assert(condition)
void ConditionVariableInit(ConditionVariable *cv)
void StrategyInitialize(bool init)
Size StrategyShmemSize(void)
void LWLockInitialize(LWLock *lock, int tranche_id)
@ LWTRANCHE_BUFFER_CONTENT
#define PG_CACHE_LINE_SIZE
#define INVALID_PROC_NUMBER
Size add_size(Size s1, Size s2)
void * ShmemInitStruct(const char *name, Size size, bool *foundPtr)
Size mul_size(Size s1, Size s2)
static pg_noinline void Size size