delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/30/10:13:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=CJpTC/
YHf7tJ5/GLgLk8bG6smR9D16Ark/G5Y+3NX5ad+cK9sx5jGopkORsndkcO7mE9Um
70SvPt+25MXL8Ke0PpZJivjo9okeIrFk/z0KvUF2xBjGtBwOql71tUDIZ7jgLlee
6ECVjB+ST/msD2RswA2Q5qT7xJhPEAUHAgOpM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=RrHjWm1v5G1e
3VeS9T1FmKZjChg=; b=bRTpMmO3K5n7GnUjbJXnOcHSsZkZSx97XxIoP7TDl0AV
JiE6TIv6vNGdNzBSVlsK+tvD4uq3frQNPLxRlSqEYtzg97NwXn7GvEua1/I9hMX8
n96tKgV+vLeZFy+t5xMQMc7xFe1IkkxZtmy6Hq4YJkFuQCRtinhMsPQ5EYGPevM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <55423877.1050801@redhat.com>
Date: Thu, 30 Apr 2015 08:13:11 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: is three any coroutine library works in cygwin?
References: <554235E1 DOT 2010200 AT 163 DOT com>
In-Reply-To: <554235E1.2010200@163.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes

--xgipJspG3FHgIkRbm0LNOwESoMLoC26uo
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

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=3Dqemu.git;a=3Dtree)

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--xgipJspG3FHgIkRbm0LNOwESoMLoC26uo
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJVQjh3AAoJEKeha0olJ0Nq+DMIAICliF2r5F6vBRVnfqaA9wvr
P24AG2dat2S5sBeI3pyeqc+md9p6JMLodx/R3WEaoD8LJ3/v3DSLLJ8Sd3wd1TkI
uS2awjrgetBSJmAF+WDf50WZ5sj0kR+ce7I8OX2MmInPef+Ydnq+FTjEWGqYhr9Q
TC4sJQcAzLzC6waAdrxN3EgfcHxlTyu4MFRB5tMvDRgdTxawwzhD/BRrZ0tHeIHF
wzzLSVfej1ex4AtkCWUJM7fnwVV6f3RamtYI2DA8xqzro7wToIyEC0mXNICzxiWk
+uJWsAF523//O6PnQO41z8wyXGD8PkjmTnMldQGciWTamY5eafnf7G4Wf+rIaOQ=
=5M/g
-----END PGP SIGNATURE-----

--xgipJspG3FHgIkRbm0LNOwESoMLoC26uo--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019