tbox provides a lightweight implementation of stackless coroutines
and it's interfaces are very simple too, for example:
c
tb_lo_coroutine_enter(coroutine)
{
while (1)
{
tb_lo_coroutine_yield();
}
}
The switch performance of this stackless coroutines is faster than the implementation of tbox's继续阅读 »
Stackless introduction
Stackfull introduction
More coroutine examples
New features
Support coroutine context switch for mips
Add __tb_thread_local__ keyword macro
Add --micro=y|n option to compiling micro library (~64K) for the embed system
Add tb_addrinfo_addr and tb_addrinfo_name interfaces
Add stackless coroutine
A继续阅读 »