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

Method Schedule

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

Source from the content-addressed store, hash-verified

140 {}
141
142 void Schedule(IPollEvent* event) {
143 auto* lst = Lists_.Get(event->Fd());
144 const ui16 oldFlags = Flags(*lst);
145 lst->PushFront(event);
146 ui16 newFlags = Flags(*lst);
147
148 if (newFlags != oldFlags) {
149 if (oldFlags) {
150 newFlags |= CONT_POLL_MODIFY;
151 }
152
153 P_->Set(lst, event->Fd(), newFlags);
154 }
155 }
156
157 void Remove(IPollEvent* event) noexcept {
158 auto* lst = Lists_.Get(event->Fd());

Callers 1

ScheduleIoWaitMethod · 0.45

Calls 5

FlagsEnum · 0.50
GetMethod · 0.45
FdMethod · 0.45
PushFrontMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected