diff options
Diffstat (limited to 'src/backend/storage/spin.h')
-rw-r--r-- | src/backend/storage/spin.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/backend/storage/spin.h b/src/backend/storage/spin.h deleted file mode 100644 index 32037684ec1..00000000000 --- a/src/backend/storage/spin.h +++ /dev/null @@ -1,38 +0,0 @@ -/*------------------------------------------------------------------------- - * - * spin.h-- - * synchronization routines - * - * - * Copyright (c) 1994, Regents of the University of California - * - * $Id: spin.h,v 1.1.1.1 1996/07/09 06:21:53 scrappy Exp $ - * - *------------------------------------------------------------------------- - */ -#ifndef SPIN_H -#define SPIN_H - -#include "ipc.h" - -/* - * two implementations of spin locks - * - * sequent, sparc, sun3: real spin locks. uses a TAS instruction; see - * src/storage/ipc/s_lock.c for details. - * - * default: fake spin locks using semaphores. see spin.c - * - */ - -typedef int SPINLOCK; - -extern bool CreateSpinlocks(IPCKey key); -extern bool AttachSpinLocks(IPCKey key); -extern bool InitSpinLocks(int init, IPCKey key); - -extern void SpinAcquire(SPINLOCK lock); -extern void SpinRelease(SPINLOCK lock); -extern bool SpinIsLocked(SPINLOCK lock); - -#endif /* SPIN_H */ |