Lab1 实验解析
tinyCoroLab1 实验解析
git clone https://github.com/sakurs2/tinyCoro📖lab1 任务参考实现
🧑💻Task #1 - 实现 task 执行结束后的正确调度逻辑
struct promise_base
{
std::coroutine_handle<> m_continuation{nullptr};
auto continuation(std::coroutine_handle<> continuation) noexcept -> void { m_continuation = continuation; }
};Task #2 - 为 task 添加 detach 状态
实验总结
Last updated