qemu-coroutine-sleep: introduce qemu_co_sleep_wake
commit3d692649d1702f9cbd00eca8542384f85663b9c7
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 9 Oct 2019 08:41:56 +0000 (9 11:41 +0300)
committerEric Blake <eblake@redhat.com>
Tue, 22 Oct 2019 14:22:07 +0000 (22 09:22 -0500)
tree4400436cbeec98d2b2974b5538ecfa929a14dcb8
parentf9bec781379dd7ccf9d01b4b6a79a9ec82c192e5
qemu-coroutine-sleep: introduce qemu_co_sleep_wake

Introduce a function to gracefully wake a coroutine sleeping in
qemu_co_sleep_ns().

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20191009084158.15614-2-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
include/qemu/coroutine.h
util/qemu-coroutine-sleep.c