diff options
author | Paolo Bonzini | 2021-05-17 12:05:43 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2021-05-21 19:22:33 +0200 |
commit | 5b33e015d38acb00340b8310a24c9998138afbe6 (patch) | |
tree | 61d4c60103900ce2a0afe316bdefba0f9b7e3f28 /include/qemu/coroutine.h | |
parent | bitops.h: Improve find_xxx_bit() documentation (diff) | |
download | qemu-5b33e015d38acb00340b8310a24c9998138afbe6.tar.gz qemu-5b33e015d38acb00340b8310a24c9998138afbe6.tar.xz qemu-5b33e015d38acb00340b8310a24c9998138afbe6.zip |
coroutine-sleep: use a stack-allocated timer
The lifetime of the timer is well-known (it cannot outlive
qemu_co_sleep_ns_wakeable, because it's deleted by the time the
coroutine resumes), so it is not necessary to place it on the heap.
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20210517100548.28806-2-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/qemu/coroutine.h')
0 files changed, 0 insertions, 0 deletions