Convert SpinLock* macros to static inline functions.

Nathan Bossart <nathan@postgresql.org>

Commit: bfc321b4723e8ca5fd3adb22a2727ec5c55d3808
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2026-02-23T21:32:01Z
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@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/aZX2oUcKf7IzHnnK%40nathan
Discussion: https://postgr.es/m/20200617183354.pm3biu3zbmo2pktq%40alap3.anarazel.de

Files

PathChange+/−
src/include/storage/spin.h modified +18 −10

Discussion