block: allow interrupting a co_sleep_ns
commit3ed9902528d0ffd244310014f7dcdcb3df3e2a04
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Apr 2012 13:12:01 +0000 (18 15:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 Apr 2012 14:03:27 +0000 (19 16:03 +0200)
treec95c62db6dd68aa4de0be0c38024c1e52bcd0527
parent2795ecf681107d55e4113592b3045ece5f6e7b3b
block: allow interrupting a co_sleep_ns

In the next patch we want to reenter the coroutine from
block_job_cancel_sync and cancel the timer.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-coroutine-sleep.c