Lines 50-56
Link Here
|
50 |
// If the new events are the same are the same as the already registered |
50 |
// If the new events are the same are the same as the already registered |
51 |
// flags, we don't have to do anything. Just return. |
51 |
// flags, we don't have to do anything. Just return. |
52 |
if (events == event_.ev_events && |
52 |
if (events == event_.ev_events && |
53 |
static_cast<bool>(event_.ev_flags & EVLIST_INTERNAL) == internal) { |
53 |
static_cast<bool>(event_.ev_evcallback.evcb_flags & EVLIST_INTERNAL) == internal) { |
54 |
return true; |
54 |
return true; |
55 |
} |
55 |
} |
56 |
|
56 |
|
Lines 67-73
Link Here
|
67 |
|
67 |
|
68 |
// Set EVLIST_INTERNAL if this is an internal event |
68 |
// Set EVLIST_INTERNAL if this is an internal event |
69 |
if (internal) { |
69 |
if (internal) { |
70 |
event_.ev_flags |= EVLIST_INTERNAL; |
70 |
event_.ev_evcallback.evcb_flags |= EVLIST_INTERNAL; |
71 |
} |
71 |
} |
72 |
|
72 |
|
73 |
// Add the event. |
73 |
// Add the event. |
Lines 159-165
Link Here
|
159 |
} |
159 |
} |
160 |
|
160 |
|
161 |
bool EventHandler::isPending() const { |
161 |
bool EventHandler::isPending() const { |
162 |
if (event_.ev_flags & EVLIST_ACTIVE) { |
162 |
if (event_.ev_evcallback.evcb_flags & EVLIST_ACTIVE) { |
163 |
if (event_.ev_res & EV_READ) { |
163 |
if (event_.ev_res & EV_READ) { |
164 |
return true; |
164 |
return true; |
165 |
} |
165 |
} |