do not use timedwait on qemu_system_cond
qemu_main_loop_start is the only place where qemu_system_ready is set to 1. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
9705fbb563
commit
e009894f08
4
cpus.c
4
cpus.c
@ -823,7 +823,7 @@ static void *qemu_kvm_cpu_thread_fn(void *arg)
|
||||
|
||||
/* and wait for machine initialization */
|
||||
while (!qemu_system_ready) {
|
||||
qemu_cond_timedwait(&qemu_system_cond, &qemu_global_mutex, 100);
|
||||
qemu_cond_wait(&qemu_system_cond, &qemu_global_mutex);
|
||||
}
|
||||
|
||||
while (1) {
|
||||
@ -855,7 +855,7 @@ static void *qemu_tcg_cpu_thread_fn(void *arg)
|
||||
|
||||
/* and wait for machine initialization */
|
||||
while (!qemu_system_ready) {
|
||||
qemu_cond_timedwait(&qemu_system_cond, &qemu_global_mutex, 100);
|
||||
qemu_cond_wait(&qemu_system_cond, &qemu_global_mutex);
|
||||
}
|
||||
|
||||
while (1) {
|
||||
|
Loading…
Reference in New Issue
Block a user