mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
job: Add job_sleep_ns()
There is nothing block layer specific about block_job_sleep_ns(), so move the function to Job. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
da01ff7f38
commit
5d43e86e11
11 changed files with 61 additions and 50 deletions
|
@ -188,7 +188,7 @@ static void coroutine_fn cancel_job_start(void *opaque)
|
|||
block_job_event_ready(&s->common);
|
||||
}
|
||||
|
||||
block_job_sleep_ns(&s->common, 100000);
|
||||
job_sleep_ns(&s->common.job, 100000);
|
||||
}
|
||||
|
||||
defer:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue