[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Fiber thing?
- From: Björn De Meyer <bjorn.demeyer@...>
- Date: Sat, 08 Jun 2002 22:29:46 +0200
For more on setjmp/longjmp fibers
please look at the following page:
It describes a scheduler written in ANSI C using only
setjmp and longjmp. It has one major deficiency,
that is, it does not copy the stack. So you cannot use
non-static local variables in the functions that are
running in parallel as coroutines/fibers.
But, perhaps it is possible to perform this feat with
just plain ANSI C. Is anyone here courageous enough to try?
"No one knows true heroes, for they speak not of their greatness." --
Björn De Meyer