public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: is three any coroutine library works in cygwin?
Date: Thu, 30 Apr 2015 14:35:00 -0000	[thread overview]
Message-ID: <20150430143543.GP3657@calimero.vinschen.de> (raw)
In-Reply-To: <55423877.1050801@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]

On Apr 30 08:13, Eric Blake wrote:
> On 04/30/2015 08:02 AM, echo wrote:
> > My program is using coroutine(implemented with ucontext api) on linux, I
> > am trying to port it to windows using cygwin. But I find out that cygwin
> > doesn't support ucontext api, so is there any coroutine library works
> > fine in cygwin?
> 
> The qemu project has several alternative implementations for coroutines
> - in addition to ucontext, it provides sigaltstack, gthread, and win32
> implementations.  Perhaps one of those can be used as a starting point
> for your needs?  (see the coroutine-*.c files in
> http://git.qemu.org/?p=qemu.git;a=tree)

Cygwin 2.0 comes with improved ucontext handling in case of calling
signal handlers.  We might be able to come up with the missing functions
(getcontext, setcontext, makecontext, swapcontext, sigaltstack) at one
point, but that requires some hacking.

Patches are very welcome!


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-04-30 14:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30 14:02 echo
2015-04-30 14:13 ` Eric Blake
2015-04-30 14:35   ` Corinna Vinschen [this message]
2015-04-30 14:25 echo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150430143543.GP3657@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).