108 #define WL_LATCH_SET (1 << 0)
109 #define WL_SOCKET_READABLE (1 << 1)
110 #define WL_SOCKET_WRITEABLE (1 << 2)
111 #define WL_TIMEOUT (1 << 3)
112 #define WL_POSTMASTER_DEATH (1 << 4)
154 #define latch_sigusr1_handler() ((void) 0)
int WaitLatch(volatile Latch *latch, int wakeEvents, long timeout)
void DisownLatch(volatile Latch *latch)
WaitEventSet * CreateWaitEventSet(MemoryContext context, int nevents)
int WaitLatchOrSocket(volatile Latch *latch, int wakeEvents, pgsocket sock, long timeout)
void ModifyWaitEvent(WaitEventSet *set, int pos, uint32 events, Latch *latch)
static int fd(const char *x, int i)
void FreeWaitEventSet(WaitEventSet *set)
void latch_sigusr1_handler(void)
int AddWaitEventToSet(WaitEventSet *set, uint32 events, pgsocket fd, Latch *latch, void *user_data)
void InitLatch(volatile Latch *latch)
void OwnLatch(volatile Latch *latch)
void InitSharedLatch(volatile Latch *latch)
int WaitEventSetWait(WaitEventSet *set, long timeout, WaitEvent *occurred_events, int nevents)
void SetLatch(volatile Latch *latch)
struct WaitEvent WaitEvent
void ResetLatch(volatile Latch *latch)
void InitializeLatchSupport(void)