Searched hist:"537 c3d4f" (Results 1 – 1 of 1) sorted by relevance
/qemu/block/ |
H A D | mirror.c | 537c3d4f Thu Dec 13 11:24:34 GMT 2018 Stefan Hajnoczi <stefanha@redhat.com> block/mirror: add missing coroutine_fn annotations
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 <mreitz@redhat.com> Cc: John Snow <jsnow@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|