124 #define WL_LATCH_SET (1 << 0) 125 #define WL_SOCKET_READABLE (1 << 1) 126 #define WL_SOCKET_WRITEABLE (1 << 2) 127 #define WL_TIMEOUT (1 << 3) 128 #define WL_POSTMASTER_DEATH (1 << 4) 129 #define WL_EXIT_ON_PM_DEATH (1 << 5) 131 #define WL_SOCKET_CONNECTED (1 << 6) 134 #define WL_SOCKET_CONNECTED WL_SOCKET_WRITEABLE 137 #define WL_SOCKET_MASK (WL_SOCKET_READABLE | \ 138 WL_SOCKET_WRITEABLE | \ 188 #define latch_sigusr1_handler() ((void) 0)
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)
void latch_sigusr1_handler(void)
int AddWaitEventToSet(WaitEventSet *set, uint32 events, pgsocket fd, Latch *latch, void *user_data)
void OwnLatch(Latch *latch)
int WaitLatch(Latch *latch, int wakeEvents, long timeout, uint32 wait_event_info)
void SetLatch(Latch *latch)
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 InitializeLatchSupport(void)