Make BackgroundWorkerList doubly-linked

This allows ForgetBackgroundWorker() and ReportBackgroundWorkerExit()
to take a RegisteredBgWorker pointer as argument, rather than a list
iterator. That feels a little more natural. But more importantly, this
paves the way for more refactoring in the next commit.

Reviewed-by: Thomas Munro <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/[email protected]

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/bgworker.c           | 62 ++++++++++++++---------------
src/backend/postmaster/postmaster.c         | 40 +++++++++----------
src/include/postmaster/bgworker_internals.h | 10 ++---
3 files changed, 54 insertions(+), 58 deletions(-)

Reply via email to