Lines Matching refs:mask
123 static int aeApiAssociate(const char *where, int portfd, int fd, int mask) { in aeApiAssociate() argument
127 if (mask & AE_READABLE) in aeApiAssociate()
129 if (mask & AE_WRITABLE) in aeApiAssociate()
136 (void *)(uintptr_t)mask); in aeApiAssociate()
152 static int aeApiAddEvent(aeEventLoop *eventLoop, int fd, int mask) { in aeApiAddEvent() argument
157 fprintf(stderr, "aeApiAddEvent: fd %d mask 0x%x\n", fd, mask); in aeApiAddEvent()
164 fullmask = mask | eventLoop->events[fd].mask; in aeApiAddEvent()
183 static void aeApiDelEvent(aeEventLoop *eventLoop, int fd, int mask) { in aeApiDelEvent() argument
188 fprintf(stderr, "del fd %d mask 0x%x\n", fd, mask); in aeApiDelEvent()
201 state->pending_masks[pfd] &= ~mask; in aeApiDelEvent()
217 fullmask = eventLoop->events[fd].mask; in aeApiDelEvent()
246 int mask, i; in aeApiPoll() local
298 mask = 0; in aeApiPoll()
300 mask |= AE_READABLE; in aeApiPoll()
302 mask |= AE_WRITABLE; in aeApiPoll()
305 eventLoop->fired[i].mask = mask; in aeApiPoll()
309 (int)event[i].portev_object, mask); in aeApiPoll()