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

Commitcaf6e9d

Browse files
committed
Have configure --without-spinlocks actually not use spinlock code, even
if supported by the cpu.
1 parent69f2e9b commitcaf6e9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/include/storage/s_lock.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
6464
* Portions Copyright (c) 1994, Regents of the University of California
6565
*
66-
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.120 2003/12/23 03:31:30 momjian Exp $
66+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.121 2003/12/23 03:52:10 momjian Exp $
6767
*
6868
*-------------------------------------------------------------------------
6969
*/
@@ -72,6 +72,7 @@
7272

7373
#include"storage/pg_sema.h"
7474

75+
#ifdefHAVE_SPINLOCKS/* skip spinlocks if requested */
7576

7677
#if defined(__GNUC__)|| defined(__ICC)
7778
/*************************************************************************
@@ -438,7 +439,7 @@ typedef unsigned char slock_t;
438439
* Uses non-gcc inline assembly:
439440
*/
440441

441-
#if !defined(HAS_TEST_AND_SET)
442+
#if !defined(HAS_TEST_AND_SET)/* We didn't trigger above, let's try here */
442443

443444
#if defined(USE_UNIVEL_CC)
444445
typedefunsignedcharslock_t;
@@ -604,6 +605,7 @@ typedef unsigned char slock_t;
604605

605606
#endif/* !defined(HAS_TEST_AND_SET */
606607

608+
#endif/* HAVE_SPINLOCKS */
607609

608610

609611
#ifndefHAS_TEST_AND_SET

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp