[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Continuations/coroutines in UNIX98 standard




On Mon, 7 Oct 2002, Chris Double wrote:

> On Mon, 7 Oct 2002 10:26:31 -0400 (EDT), "Neel Krishnaswami"
> <neelk@alum.mit.edu> 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.

But these are only one-shot continuations, right?  Is there any way to
copy a Fiber?

Avi