| 128 | |
| 129 | |
| 130 | TContExecutor::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 | |
| 148 | TContExecutor::~TContExecutor() { |
| 149 | Y_ABORT_UNLESS(Allocated_ == 0, "leaked %u coroutines", (ui32)Allocated_); |
nothing calls this directly
no test coverage detected