125 #define WL_LATCH_SET (1 << 0) 126 #define WL_SOCKET_READABLE (1 << 1) 127 #define WL_SOCKET_WRITEABLE (1 << 2) 128 #define WL_TIMEOUT (1 << 3) 129 #define WL_POSTMASTER_DEATH (1 << 4) 130 #define WL_EXIT_ON_PM_DEATH (1 << 5) 132 #define WL_SOCKET_CONNECTED (1 << 6) 135 #define WL_SOCKET_CONNECTED WL_SOCKET_WRITEABLE 138 #define WL_SOCKET_MASK (WL_SOCKET_READABLE | \ 139 WL_SOCKET_WRITEABLE | \
WaitEventSet * CreateWaitEventSet(MemoryContext context, int nevents)
void ResetLatch(Latch *latch)
int WaitEventSetWait(WaitEventSet *set, long timeout, WaitEvent *occurred_events, int nevents, uint32 wait_event_info)
void ModifyWaitEvent(WaitEventSet *set, int pos, uint32 events, Latch *latch)
static int fd(const char *x, int i)
void DisownLatch(Latch *latch)
void FreeWaitEventSet(WaitEventSet *set)
int AddWaitEventToSet(WaitEventSet *set, uint32 events, pgsocket fd, Latch *latch, void *user_data)
int GetNumRegisteredWaitEvents(WaitEventSet *set)
void OwnLatch(Latch *latch)
int WaitLatch(Latch *latch, int wakeEvents, long timeout, uint32 wait_event_info)
void SetLatch(Latch *latch)
sig_atomic_t maybe_sleeping
int WaitLatchOrSocket(Latch *latch, int wakeEvents, pgsocket sock, long timeout, uint32 wait_event_info)
void InitializeLatchWaitSet(void)
void InitSharedLatch(Latch *latch)
struct WaitEvent WaitEvent
void InitLatch(Latch *latch)
void ShutdownLatchSupport(void)
void InitializeLatchSupport(void)