1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-19 13:42:17 +03:00

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
This commit is contained in:
Heikki Linnakangas
2025-03-06 01:26:16 +02:00
parent 84e5b2f07a
commit 393e0d2314
9 changed files with 2154 additions and 2060 deletions

View File

@@ -127,7 +127,7 @@ InitPostmasterChild(void)
#endif
/* Initialize process-local latch support */
InitializeLatchSupport();
InitializeWaitEventSupport();
InitProcessLocalLatch();
InitializeLatchWaitSet();
@@ -188,7 +188,7 @@ InitStandaloneProcess(const char *argv0)
InitProcessGlobals();
/* Initialize process-local latch support */
InitializeLatchSupport();
InitializeWaitEventSupport();
InitProcessLocalLatch();
InitializeLatchWaitSet();