pgsql: Improve documentation for pg_atomic_unlocked_write_u32()

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve documentation for pg_atomic_unlocked_write_u32()
Date: 2025-12-09 04:12:30
Message-ID: E1vSp5R-003YHd-2z@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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 <nathandbossart(at)gmail(dot)com>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Discussion: https://postgr.es/m/aTGt7q4Jvn97uGAx@nathan

Branch
------
master

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

Modified Files
--------------
src/include/port/atomics.h | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2025-12-09 04:12:34 Re: pgsql: Add pg_atomic_unlocked_write_u64
Previous Message David Rowley 2025-12-09 01:43:42 pgsql: Doc: fix typo in hash index documentation