Improve documentation for pg_atomic_unlocked_write_u32()
authorAndres Freund <[email protected]>
Tue, 9 Dec 2025 04:03:54 +0000 (23:03 -0500)
committerAndres Freund <[email protected]>
Tue, 9 Dec 2025 04:11:19 +0000 (23:11 -0500)
commitaa749bde323364039f369784071f315ad53c1325
tree3fc4b262ee6bf37dbda23b04f9ebb29df94e2105
parent52382feb782b76c42552e96f0bc382a87fd7c1e4
Improve documentation for pg_atomic_unlocked_write_u32()

After my recent commit 7902a47c20b, Nathan noticed that
pg_atomic_unlocked_write_u64() was not accurately described by the comments
for the 32bit version. Turns out the 32bit version has suffered from
copy-and-paste-itis since its introduction. Fix.

Reported-by: Nathan Bossart <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Reviewed-by: Nathan Bossart <[email protected]>
Discussion: https://postgr.es/m/aTGt7q4Jvn97uGAx@nathan
src/include/port/atomics.h