diff options
Diffstat (limited to 'src/backend/storage/sinval.h')
-rw-r--r-- | src/backend/storage/sinval.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/backend/storage/sinval.h b/src/backend/storage/sinval.h new file mode 100644 index 00000000000..036597dbb7a --- /dev/null +++ b/src/backend/storage/sinval.h @@ -0,0 +1,33 @@ +/*------------------------------------------------------------------------- + * + * sinval.h-- + * POSTGRES shared cache invalidation communication definitions. + * + * + * Copyright (c) 1994, Regents of the University of California + * + * $Id: sinval.h,v 1.1.1.1 1996/07/09 06:21:53 scrappy Exp $ + * + *------------------------------------------------------------------------- + */ +#ifndef SINVAL_H +#define SINVAL_H + +#include "c.h" +#include "storage/spin.h" +#include "storage/ipc.h" +#include "storage/itemptr.h" +#include "storage/backendid.h" + +extern SPINLOCK SInvalLock; + +extern void CreateSharedInvalidationState(IPCKey key); +extern void AttachSharedInvalidationState(IPCKey key); +extern void InitSharedInvalidationState(); +extern void RegisterSharedInvalid(int cacheId, Index hashIndex, + ItemPointer pointer); +extern void InvalidateSharedInvalid(void (*invalFunction)(), + void (*resetFunction)()); + + +#endif /* SINVAL_H */ |