MCPcopy Create free account
hub / github.com/apache/cloudberry / ProcWaitForSignal

Function ProcWaitForSignal

src/backend/storage/lmgr/proc.c:2182–2189  ·  view source on GitHub ↗

* ProcWaitForSignal - wait for a signal from another backend. * * As this uses the generic process latch the caller has to be robust against * unrelated wakeups: Always check that the desired state has occurred, and * wait again if not. */

Source from the content-addressed store, hash-verified

2180 * wait again if not.
2181 */
2182void
2183ProcWaitForSignal(uint32 wait_event_info)
2184{
2185 (void) WaitLatch(MyLatch, WL_LATCH_SET | WL_EXIT_ON_PM_DEATH, 0,
2186 wait_event_info);
2187 ResetLatch(MyLatch);
2188 CHECK_FOR_INTERRUPTS();
2189}
2190
2191/*
2192 * ProcSendSignal - send a signal to a backend identified by PID

Callers 4

LockBufferForCleanupFunction · 0.85
GetSafeSnapshotFunction · 0.85

Calls 2

WaitLatchFunction · 0.85
ResetLatchFunction · 0.85

Tested by

no test coverage detected