Re: [BUGS] BUG #2401: spinlocks not available on amd64 - Mailing list pgsql-patches

From Tom Lane
Subject Re: [BUGS] BUG #2401: spinlocks not available on amd64
Date
Msg-id 16374.1146178021@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] BUG #2401: spinlocks not available on amd64  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [BUGS] BUG #2401: spinlocks not available on amd64  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:

> ! extern volatile slock_t pg_atomic_cas(volatile slock_t *lock, slock_t with,
> !                                       slock_t cmp);

Surely it is not useful to mark the result of a function as volatile.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [BUGS] BUG #2401: spinlocks not available on amd64
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #2401: spinlocks not available on amd64