Add detached node functions to ilist
Andres Freund <andres@anarazel.de>
Add detached node functions to ilist These allow to test whether an element is in a list by checking whether prev/next are NULL. Needed to replace SHMQueueIsDetached() when converting from SHM_QUEUE to ilist.h style lists. Reviewed-by: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/20221120055930.t6kl3tyivzhlrzu2@awork3.anarazel.de Discussion: https://postgr.es/m/20200211042229.msv23badgqljrdg2@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/include/lib/ilist.h | modified | +63 −0 |
Discussion
- Improve heavyweight locks instead of building new lock managers? 7 messages · 2020-02-11 → 2020-04-10
- Replace PROC_QUEUE / SHM_QUEUE with ilist.h 4 messages · 2022-11-20 → 2023-01-20