Re: ProcArrayGroupClearXid() compare-exchange style
On Tue, Oct 15, 2019 at 9:23 AM Noah Misch wrote: > > ProcArrayGroupClearXid() has this: > > while (true) > { > nextidx = > pg_atomic_read_u32(&procglobal->procArrayGroupFirst); > > ... > > if > (pg_atomic_compare_exchange_u32(&proc
ProcArrayGroupClearXid() compare-exchange style
ProcArrayGroupClearXid() has this: while (true) { nextidx = pg_atomic_read_u32(&procglobal->procArrayGroupFirst); ... if (pg_atomic_compare_exchange_u32(&procglobal->procArrayGroupFirst,