mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-18 02:12:13 -07:00
coroutine: Clean up qemu_coroutine_enter()
qemu_coroutine_enter() is now the only user of coroutine_swap(). Both functions are short, so inline it. Also, using COROUTINE_YIELD is now even more confusing because this code is never called during qemu_coroutine_yield() any more. In fact, this value is never read back, so we can just introduce a new COROUTINE_ENTER which documents the purpose of the task switch better. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
315a1309de
commit
cd12bb567c
2 changed files with 16 additions and 21 deletions
|
|
@ -31,6 +31,7 @@
|
|||
typedef enum {
|
||||
COROUTINE_YIELD = 1,
|
||||
COROUTINE_TERMINATE = 2,
|
||||
COROUTINE_ENTER = 3,
|
||||
} CoroutineAction;
|
||||
|
||||
struct Coroutine {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue