Lines Matching refs:mask
62 static int aeApiAddEvent(aeEventLoop *eventLoop, int fd, int mask) { in aeApiAddEvent() argument
65 if (mask & AE_READABLE) FD_SET(fd,&state->rfds); in aeApiAddEvent()
66 if (mask & AE_WRITABLE) FD_SET(fd,&state->wfds); in aeApiAddEvent()
70 static void aeApiDelEvent(aeEventLoop *eventLoop, int fd, int mask) { in aeApiDelEvent() argument
73 if (mask & AE_READABLE) FD_CLR(fd,&state->rfds); in aeApiDelEvent()
74 if (mask & AE_WRITABLE) FD_CLR(fd,&state->wfds); in aeApiDelEvent()
88 int mask = 0; in aeApiPoll() local
91 if (fe->mask == AE_NONE) continue; in aeApiPoll()
92 if (fe->mask & AE_READABLE && FD_ISSET(j,&state->_rfds)) in aeApiPoll()
93 mask |= AE_READABLE; in aeApiPoll()
94 if (fe->mask & AE_WRITABLE && FD_ISSET(j,&state->_wfds)) in aeApiPoll()
95 mask |= AE_WRITABLE; in aeApiPoll()
97 eventLoop->fired[numevents].mask = mask; in aeApiPoll()