Re: Continuations/coroutines in UNIX98 standard
"Chris Double" <[email protected]> Mon, 7 Oct 2002 21:23:09 UT
| Newsgroups | gmane.comp.lang.goo.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 7 Oct 2002 10:26:31 -0400 (EDT), "Neel Krishnaswami" <[email protected]> said: > > I just did a little checking, and it turns out the Cygwin doesn't > support this interface -- at least, it lacks the swapcontext() > function. Some of the other Unix-on-Windows packages (like UWin or > MKS) have it, which presumably means it's not imposssible to > implement. Perhaps someone with a big Windows clue (Chris?) can > comment on similar interfaces over there? Windows (from Win 98 and above) has Fibers which provide this functionality. There's a convenient API for doing all the coroutine type stuff. The 'Io' programming language (http://www.dekorte.com/Software/C/Io/) has support for coroutinues by playing around with the setjmp buffer to provide a new stack and starting address. I ported this to Symbian without difficulty and it has support for Windows, Linux and FreeBSD I believe. Chris. -- Chris Double [email protected]