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