Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit671c4ea

Browse files
committed
Remove unused spin function when no spinlocks.
1 parentd37e93a commit671c4ea

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

‎src/backend/storage/ipc/spin.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.5 1997/08/19 21:33:08 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.6 1997/08/21 13:43:46 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -99,20 +99,6 @@ SpinRelease(SPINLOCK lock)
9999
staticboolAttachSpinLocks(IPCKeykey);
100100
staticboolSpinIsLocked(SPINLOCKlock);
101101

102-
103-
staticbool
104-
AttachSpinLocks(IPCKeykey)
105-
{
106-
/* the spin lock shared memory must have been attached by now */
107-
return(TRUE);
108-
}
109-
110-
staticbool
111-
SpinIsLocked(SPINLOCKlock)
112-
{
113-
return(!LockIsFree(lock));
114-
}
115-
116102
/*
117103
* SpinAcquire -- try to grab a spinlock
118104
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp