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

Function DoExecuteEvent

library/cpp/coroutine/engine/cont_poller.cpp:7–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5 namespace {
6 template <class T>
7 int DoExecuteEvent(T* event) noexcept {
8 auto* cont = event->Cont();
9
10 if (cont->Cancelled()) {
11 return ECANCELED;
12 }
13
14 cont->Executor()->ScheduleIoWait(event);
15 cont->Switch();
16
17 if (cont->Cancelled()) {
18 return ECANCELED;
19 }
20
21 return event->Status();
22 }
23 }
24
25 void TContPollEvent::Wake() noexcept {

Callers 1

ExecuteEventFunction · 0.85

Calls 6

CancelledMethod · 0.80
ScheduleIoWaitMethod · 0.80
SwitchMethod · 0.80
ContMethod · 0.45
ExecutorMethod · 0.45
StatusMethod · 0.45

Tested by

no test coverage detected