* 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. */
| 2180 | * wait again if not. |
| 2181 | */ |
| 2182 | void |
| 2183 | ProcWaitForSignal(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 |
no test coverage detected