Skip to content

Commit 393e0d2

Browse files
committed
Split WaitEventSet functions to separate source file
latch.c now only contains the Latch related functions, which build on the WaitEventSet abstraction. Most of the platform-dependent stuff is now in waiteventset.c. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/8a507fb6-df28-49d3-81a5-ede180d7f0fb@iki.fi
1 parent 84e5b2f commit 393e0d2

File tree

9 files changed

+2154
-2060
lines changed

9 files changed

+2154
-2060
lines changed

src/backend/libpq/pqsignal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pqinitmask(void)
4242
{
4343
sigemptyset(&UnBlockSig);
4444

45-
/* Note: InitializeLatchSupport() modifies UnBlockSig. */
45+
/* Note: InitializeWaitEventSupport() modifies UnBlockSig. */
4646

4747
/* First set all signals, then clear some. */
4848
sigfillset(&BlockSig);

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ PostmasterMain(int argc, char *argv[])
548548
pqsignal(SIGCHLD, handle_pm_child_exit_signal);
549549

550550
/* This may configure SIGURG, depending on platform. */
551-
InitializeLatchSupport();
551+
InitializeWaitEventSupport();
552552
InitProcessLocalLatch();
553553

554554
/*

src/backend/storage/ipc/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ OBJS = \
2525
signalfuncs.o \
2626
sinval.o \
2727
sinvaladt.o \
28-
standby.o
28+
standby.o \
29+
waiteventset.o
2930

3031
include $(top_srcdir)/src/backend/common.mk

0 commit comments

Comments
 (0)