Convert SpinLock* macros to static inline functions.
Nathan Bossart <nathan@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/include/storage/spin.h | modified | +18 −10 |
Discussion
- Atomic operations within spinlocks 43 messages · 2020-06-03 → 2020-06-18
- convert SpinLock* macros to static inline functions 7 messages · 2026-02-18 → 2026-02-23