mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-13 01:47:05 +08:00
32 lines
873 B
C
32 lines
873 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* sinval.h--
|
|
* POSTGRES shared cache invalidation communication definitions.
|
|
*
|
|
*
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: sinval.h,v 1.8 1998/02/26 04:43:34 momjian Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef SINVAL_H
|
|
#define SINVAL_H
|
|
|
|
#include <storage/itemptr.h>
|
|
#include <storage/spin.h>
|
|
|
|
extern SPINLOCK SInvalLock;
|
|
|
|
extern void CreateSharedInvalidationState(IPCKey key);
|
|
extern void AttachSharedInvalidationState(IPCKey key);
|
|
extern void InitSharedInvalidationState(void);
|
|
extern void
|
|
RegisterSharedInvalid(int cacheId, Index hashIndex,
|
|
ItemPointer pointer);
|
|
extern void InvalidateSharedInvalid(void (*invalFunction) (),
|
|
void (*resetFunction) ());
|
|
|
|
|
|
#endif /* SINVAL_H */
|