Lines Matching refs:e
26 event* e; member
32 : loop(loop), e(nullptr), timeout({}), callback(callback), enabled(false) { in IOEvent()
36 if (e != nullptr) { in ~IOEvent()
37 event_free(e); in ~IOEvent()
96 IOEvent* e = static_cast<IOEvent*>(arg); in EventCallbackFn() local
97 if (!e->callback()) { in EventCallbackFn()
98 e->loop->has_error_ = true; in EventCallbackFn()
99 e->loop->ExitLoop(); in EventCallbackFn()
152 std::unique_ptr<IOEvent> e(new IOEvent(this, callback)); in AddEvent() local
153 e->e = event_new(ebase_, fd_or_sig, events, EventCallbackFn, e.get()); in AddEvent()
154 if (e->e == nullptr) { in AddEvent()
158 if (event_add(e->e, timeout) != 0) { in AddEvent()
163 e->timeout = *timeout; in AddEvent()
165 e->enabled = true; in AddEvent()
166 events_.push_back(std::move(e)); in AddEvent()
196 if (event_del(ref->e) != 0) { in DisableEvent()
209 if (event_add(ref->e, timeout) != 0) { in EnableEvent()