diff options
author | Paolo Bonzini | 2021-05-17 12:05:47 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2021-05-21 19:22:33 +0200 |
commit | 29a6ea24eb85d8400df1607a9e11d0ef9ec5e88d (patch) | |
tree | 86dbfa59f1ceb9324ee7937f457ac906e6b81069 /include/exec/exec-all.h | |
parent | coroutine-sleep: move timer out of QemuCoSleepState (diff) | |
download | qemu-29a6ea24eb85d8400df1607a9e11d0ef9ec5e88d.tar.gz qemu-29a6ea24eb85d8400df1607a9e11d0ef9ec5e88d.tar.xz qemu-29a6ea24eb85d8400df1607a9e11d0ef9ec5e88d.zip |
coroutine-sleep: replace QemuCoSleepState pointer with struct in the API
Right now, users of qemu_co_sleep_ns_wakeable are simply passing
a pointer to QemuCoSleepState by reference to the function. But
QemuCoSleepState really is just a Coroutine*; making the
content of the struct public is just as efficient and lets us
skip the user_state_pointer indirection.
Since the usage is changed, take the occasion to rename the
struct to QemuCoSleep.
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20210517100548.28806-6-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions