summary refs log tree commit diff stats
path: root/include/qemu/bitops.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-05-17 12:05:47 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2021-05-21 18:22:33 +0100
commit29a6ea24eb85d8400df1607a9e11d0ef9ec5e88d (patch)
tree86dbfa59f1ceb9324ee7937f457ac906e6b81069 /include/qemu/bitops.h
parent1485f0c24cfbef7a542ce13d49e9f68e285c57d8 (diff)
downloadfocaccia-qemu-29a6ea24eb85d8400df1607a9e11d0ef9ec5e88d.tar.gz
focaccia-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/qemu/bitops.h')
0 files changed, 0 insertions, 0 deletions