* [Qemu-devel] About coroutine inside qemu
@ 2013-08-30 20:59 Yaodong Yang
2013-09-02 9:11 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Yaodong Yang @ 2013-08-30 20:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Yaodong Yang
[-- Attachment #1: Type: text/plain, Size: 265 bytes --]
When a new work thread, which is not inside coroutine, enter a coroutine(named as A), what happened to the work thread? Is it true that the work thread also become a coroutine, or it just stop? Later if the coroutine A call yield. what happened to the work thread?
[-- Attachment #2.1: Type: text/html, Size: 308 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] About coroutine inside qemu
2013-08-30 20:59 [Qemu-devel] About coroutine inside qemu Yaodong Yang
@ 2013-09-02 9:11 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2013-09-02 9:11 UTC (permalink / raw)
To: Yaodong Yang; +Cc: qemu-devel
On Fri, Aug 30, 2013 at 08:59:37PM +0000, Yaodong Yang wrote:
> When a new work thread, which is not inside coroutine, enter a
> coroutine(named as A), what happened to the work thread? Is it true
> that the work thread also become a coroutine, or it just stop? Later
> if the coroutine A call yield. what happened to the work thread?
qemu_coroutine_enter() returns when the coroutine yields or terminates.
Therefore the thread gives its control to the coroutine until it yields
or terminates.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-02 9:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30 20:59 [Qemu-devel] About coroutine inside qemu Yaodong Yang
2013-09-02 9:11 ` Stefan Hajnoczi
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 NNTP newsgroup(s).