MCPcopy Create free account
hub / github.com/catboost/catboost / Remove

Method Remove

library/cpp/coroutine/engine/cont_poller.h:157–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 }
156
157 void Remove(IPollEvent* event) noexcept {
158 auto* lst = Lists_.Get(event->Fd());
159 const ui16 oldFlags = Flags(*lst);
160 event->Unlink();
161 ui16 newFlags = Flags(*lst);
162
163 if (newFlags != oldFlags) {
164 if (newFlags) {
165 newFlags |= CONT_POLL_MODIFY;
166 }
167
168 P_->Set(lst, event->Fd(), newFlags);
169 }
170 }
171
172 void Wait(TEvents& events, TInstant deadLine) {
173 events.clear();

Callers 1

RemoveFromIOWaitMethod · 0.45

Calls 5

FlagsEnum · 0.50
GetMethod · 0.45
FdMethod · 0.45
UnlinkMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected