Lines Matching refs:events
35 void invoke_fde(struct fdevent* fde, unsigned events) { in invoke_fde() argument
37 (*f)(fde->fd.get(), events, fde->arg); in invoke_fde()
39 (*f)(fde, events, fde->arg); in invoke_fde()
102 void fdevent_context::Add(fdevent* fde, unsigned events) { in Add() argument
103 CHECK(!(events & FDE_TIMEOUT)); in Add()
104 Set(fde, fde->state | events); in Add()
107 void fdevent_context::Del(fdevent* fde, unsigned events) { in Del() argument
108 CHECK(!(events & FDE_TIMEOUT)); in Del()
109 Set(fde, fde->state & ~events); in Del()
144 void fdevent_context::HandleEvents(const std::vector<fdevent_event>& events) { in HandleEvents() argument
145 for (const auto& event : events) { in HandleEvents()
146 invoke_fde(event.fde, event.events); in HandleEvents()
223 void fdevent_set(fdevent* fde, unsigned events) { in fdevent_set() argument
224 fdevent_get_ambient()->Set(fde, events); in fdevent_set()
227 void fdevent_add(fdevent* fde, unsigned events) { in fdevent_add() argument
228 fdevent_get_ambient()->Add(fde, events); in fdevent_add()
231 void fdevent_del(fdevent* fde, unsigned events) { in fdevent_del() argument
232 fdevent_get_ambient()->Del(fde, events); in fdevent_del()