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

Method TTrampoline

library/cpp/coroutine/engine/trampoline.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace NCoro {
16
17TTrampoline::TTrampoline(NStack::IAllocator& allocator, ui32 stackSize, TFunc f, TCont* cont) noexcept
18 : Stack_(allocator, stackSize, cont->Name())
19 , Clo_{this, Stack_.Get(), cont->Name()}
20 , Ctx_(Clo_)
21 , Func_(std::move(f))
22 , Cont_(cont)
23 {}
24
25 void TTrampoline::DoRun() {
26 if (Cont_->Executor()->FailOnError()) {

Callers

nothing calls this directly

Calls 3

moveFunction · 0.50
NameMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected