mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Remove unused spin function when no spinlocks.
This commit is contained in:
parent
d37e93aafd
commit
671c4ea6f5
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.5 1997/08/19 21:33:08 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.6 1997/08/21 13:43:46 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -99,20 +99,6 @@ SpinRelease(SPINLOCK lock)
|
|||||||
static bool AttachSpinLocks(IPCKey key);
|
static bool AttachSpinLocks(IPCKey key);
|
||||||
static bool SpinIsLocked(SPINLOCK lock);
|
static bool SpinIsLocked(SPINLOCK lock);
|
||||||
|
|
||||||
|
|
||||||
static bool
|
|
||||||
AttachSpinLocks(IPCKey key)
|
|
||||||
{
|
|
||||||
/* the spin lock shared memory must have been attached by now */
|
|
||||||
return(TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool
|
|
||||||
SpinIsLocked(SPINLOCK lock)
|
|
||||||
{
|
|
||||||
return(!LockIsFree(lock));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SpinAcquire -- try to grab a spinlock
|
* SpinAcquire -- try to grab a spinlock
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user