[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] block/mirror: add missing coroutine_fn annotati
Re: [Qemu-devel] [PATCH] block/mirror: add missing coroutine_fn annotations
Thu, 13 Dec 2018 13:02:37 +0100
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
> 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.