pgsql: Convert SpinLock* macros to static inline functions.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Convert SpinLock* macros to static inline functions.
Date: 2026-02-23 21:32:55
Message-ID: E1vudXz-000sgI-1Y@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Convert SpinLock* macros to static inline functions.

This is preparatory work for a proposed follow-up commit that would
add assertions to these functions.

Reviewed-by: Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/aZX2oUcKf7IzHnnK%40nathan
Discussion: https://postgr.es/m/20200617183354.pm3biu3zbmo2pktq%40alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bfc321b4723e8ca5fd3adb22a2727ec5c55d3808

Modified Files
--------------
src/include/storage/spin.h | 28 ++++++++++++++++++----------
1 file changed, 18 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2026-02-23 21:57:40 pgsql: Stamp 18.3.
Previous Message Andrew Dunstan 2026-02-23 21:24:08 pgsql: Fix indentation from commit b380a56a3f9