diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2021-05-17 12:05:43 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2021-05-21 18:22:33 +0100 |
| commit | 5b33e015d38acb00340b8310a24c9998138afbe6 (patch) | |
| tree | 61d4c60103900ce2a0afe316bdefba0f9b7e3f28 /include/qemu | |
| parent | 5c6ae58d4bdca71f0b63e854ceb6a8ee67cbddd8 (diff) | |
| download | focaccia-qemu-5b33e015d38acb00340b8310a24c9998138afbe6.tar.gz focaccia-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')
0 files changed, 0 insertions, 0 deletions