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

Method CreateOwned

library/cpp/coroutine/engine/impl.cpp:253–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253TCont* TContExecutor::CreateOwned(
254 NCoro::TTrampoline::TFunc func,
255 const char* name,
256 TMaybe<ui32> customStackSize
257) noexcept {
258 Allocated_ += 1;
259 if (!customStackSize) {
260 customStackSize = DefaultStackSize_;
261 }
262 auto* cont = new TCont(*StackAllocator_, *customStackSize, *this, std::move(func), name);
263 ScheduleExecution(cont);
264 return cont;
265}
266
267NCoro::NStack::TAllocatorStats TContExecutor::GetAllocatorStats() const noexcept {
268 return StackAllocator_->GetStackStats();

Callers 3

TestPauseMethod · 0.80
TestOverrideTimeMethod · 0.80

Calls 1

moveFunction · 0.50

Tested by 3

TestPauseMethod · 0.64
TestOverrideTimeMethod · 0.64