]> git.proxmox.com Git - qemu.git/commit - qemu-thread-posix.c
Refactor thread retrieval and check
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 12 Mar 2011 16:43:51 +0000 (17:43 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 13 Mar 2011 14:44:21 +0000 (14:44 +0000)
commitb7680cb6078bd7294a3dd86473d3f2fdee991dd0
treefdebb0b78694eab436d31c484b028523805ee301
parent68c23e5520e8286d79d96ab47c0ea722ceb75041
Refactor thread retrieval and check

We have qemu_cpu_self and qemu_thread_self. The latter is retrieving the
current thread, the former is checking for equality (using CPUState). We
also have qemu_thread_equal which is only used like qemu_cpu_self.

This refactors the interfaces, creating qemu_cpu_is_self and
qemu_thread_is_self as well ass qemu_thread_get_self.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cpus.c
exec.c
qemu-common.h
qemu-thread.c
qemu-thread.h
target-i386/kvm.c
ui/vnc-jobs-async.c