qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] block/mirror: add missing coroutine_fn annotati


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] block/mirror: add missing coroutine_fn annotations
Date: Thu, 13 Dec 2018 13:02:37 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

Am 13.12.2018 um 12:24 hat Stefan Hajnoczi geschrieben:
> Marking a function coroutine_fn currently has no effect on the compiler,
> but it documents that this function must be called from coroutine
> context and it may yield.  This is important information for the
> programmer.
> 
> Also, if we ever transition to a stackless coroutine implementation,
> then it's likely that the annotation will become mandatory so the
> compiler can use the correct calling convention for coroutine functions.
> 
> Cc: Max Reitz <address@hidden>
> Cc: John Snow <address@hidden>
> Signed-off-by: Stefan Hajnoczi <address@hidden>

Thanks, applied to the block branch.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]