]> git.proxmox.com Git - mirror_qemu.git/commit - cpus.c
Check effective suspension of TCG thread
authorOlivier Hainque <hainque@adacore.com>
Tue, 9 Apr 2013 16:06:53 +0000 (18:06 +0200)
committerStefan Weil <sw@weilnetz.de>
Fri, 12 Apr 2013 16:27:16 +0000 (18:27 +0200)
commited9164a3549f93204d6b096136cda2ce54e9f03a
tree990cd43823c5f8292a38e070a691a7bbc0ec0bee
parent93b48c201eb6c0404d15550a0eaa3c0f7937e35e
Check effective suspension of TCG thread

On multi-core systems, SuspendThread does not guaranty immediate thread
suspension. We add busy loop to wait for effective thread suspension
after call to ThreadSuspend().

Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
cpus.c