[Top][All Lists]

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

[Qemu-devel] [PATCH 2/5] qemu_coroutine_self should not be marked corout

From: Charlie Shepherd
Subject: [Qemu-devel] [PATCH 2/5] qemu_coroutine_self should not be marked coroutine_fn as it cannot yield
Date: Mon, 5 Aug 2013 20:44:04 +0200

From: Charlie Shepherd <address@hidden>

While it only really makes sense to call qemu_coroutine_self() in a coroutine
context, it cannot actually yield execution itself, so remove the coroutine_fn
 include/block/coroutine.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/block/coroutine.h b/include/block/coroutine.h
index 3b94b6d..563dcde 100644
--- a/include/block/coroutine.h
+++ b/include/block/coroutine.h
@@ -87,7 +87,7 @@ void coroutine_fn qemu_coroutine_yield(void);
  * Get the currently executing coroutine
-Coroutine *coroutine_fn qemu_coroutine_self(void);
+Coroutine *qemu_coroutine_self(void);
  * Return whether or not currently inside a coroutine

reply via email to

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