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

Method TContExecutor

library/cpp/coroutine/engine/impl.cpp:130–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129
130TContExecutor::TContExecutor(
131 uint32_t defaultStackSize,
132 THolder<IPollerFace> poller,
133 NCoro::IScheduleCallback* scheduleCallback,
134 NCoro::IEnterPollerCallback* enterPollerCallback,
135 NCoro::NStack::EGuard defaultGuard,
136 TMaybe<NCoro::NStack::TPoolAllocatorSettings> poolSettings,
137 NCoro::ITime* time
138)
139 : ScheduleCallback_(scheduleCallback)
140 , EnterPollerCallback_(enterPollerCallback)
141 , DefaultStackSize_(defaultStackSize)
142 , Poller_(std::move(poller))
143 , Time_(time)
144{
145 StackAllocator_ = NCoro::NStack::GetAllocator(poolSettings, defaultGuard);
146}
147
148TContExecutor::~TContExecutor() {
149 Y_ABORT_UNLESS(Allocated_ == 0, "leaked %u coroutines", (ui32)Allocated_);

Callers

nothing calls this directly

Calls 2

GetAllocatorFunction · 0.85
moveFunction · 0.50

Tested by

no test coverage detected