浏览文章

Ucontext

1 项

ucontext

概述 ucontext系列允许在C中实现高级控制流模式,例如迭代器,纤维和协程。 主要的4个函数 int setcontext(const ucontext_t *ucp) This function transfers control to the context in ucp. Execution …

继续阅读