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(-)