资 源 简 介
source moved to github
and changed to zlib-license. source moved: https://github.com/sharow/libconcurrent
Japanese Page Here: http://code.google.com/p/libconcurrent/wiki/ProjectSummary_Japanese
features
asymmetric-coroutine (fiber/micro-thread)
generator
stack switching
context saved to native stack
(Linux|Windows)*(i686|x86_64)
query using stack size
minimalize dependency to platform API
NOT "LINE" hack, NOT setjmp/longjmp trick, NOT depend ucontext.h, NOT depend windows.h
NOT depend ANSI-C standard library. nothing #include these.
small & lightweight
sample/many_context1.chttps://code.google.com/p/libconcurrent/source/browse/sample/many_context1.c
2.5 million context switch(=resume/yield pair.