• Andres Freund's avatar
    Convert the PGPROC->lwWaitLink list into a dlist instead of open coding it. · 7882c3b0
    Andres Freund authored
    Besides being shorter and much easier to read it changes the logic in
    LWLockRelease() to release all shared lockers when waking up any. This
    can yield some significant performance improvements - and the fairness
    isn't really much worse than before, as we always allowed new shared
    lockers to jump the queue.
    7882c3b0
lwlock.h 9.27 KB