Have configure --without-spinlocks actually not use spinlock code, even
if supported by the cpu.
This commit is contained in:
parent
69f2e9b0fc
commit
caf6e9d2dd
@ -63,7 +63,7 @@
|
|||||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.120 2003/12/23 03:31:30 momjian Exp $
|
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.121 2003/12/23 03:52:10 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -72,6 +72,7 @@
|
|||||||
|
|
||||||
#include "storage/pg_sema.h"
|
#include "storage/pg_sema.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_SPINLOCKS /* skip spinlocks if requested */
|
||||||
|
|
||||||
#if defined(__GNUC__) || defined(__ICC)
|
#if defined(__GNUC__) || defined(__ICC)
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
@ -438,7 +439,7 @@ typedef unsigned char slock_t;
|
|||||||
* Uses non-gcc inline assembly:
|
* Uses non-gcc inline assembly:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(HAS_TEST_AND_SET)
|
#if !defined(HAS_TEST_AND_SET) /* We didn't trigger above, let's try here */
|
||||||
|
|
||||||
#if defined(USE_UNIVEL_CC)
|
#if defined(USE_UNIVEL_CC)
|
||||||
typedef unsigned char slock_t;
|
typedef unsigned char slock_t;
|
||||||
@ -604,6 +605,7 @@ typedef unsigned char slock_t;
|
|||||||
|
|
||||||
#endif /* !defined(HAS_TEST_AND_SET */
|
#endif /* !defined(HAS_TEST_AND_SET */
|
||||||
|
|
||||||
|
#endif /* HAVE_SPINLOCKS */
|
||||||
|
|
||||||
|
|
||||||
#ifndef HAS_TEST_AND_SET
|
#ifndef HAS_TEST_AND_SET
|
||||||
|
Loading…
x
Reference in New Issue
Block a user