summaryrefslogtreecommitdiff
path: root/qemu-common.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-03-12 17:43:51 +0100
committerBlue Swirl <blauwirbel@gmail.com>2011-03-13 14:44:21 +0000
commitb7680cb6078bd7294a3dd86473d3f2fdee991dd0 (patch)
treefdebb0b78694eab436d31c484b028523805ee301 /qemu-common.h
parent68c23e5520e8286d79d96ab47c0ea722ceb75041 (diff)
downloadqemu-b7680cb6078bd7294a3dd86473d3f2fdee991dd0.tar.gz
qemu-b7680cb6078bd7294a3dd86473d3f2fdee991dd0.tar.bz2
qemu-b7680cb6078bd7294a3dd86473d3f2fdee991dd0.zip
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>
Diffstat (limited to 'qemu-common.h')
-rw-r--r--qemu-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-common.h b/qemu-common.h
index 18e648ff5c..3fe1719d03 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -290,7 +290,7 @@ void qemu_notify_event(void);
/* Unblock cpu */
void qemu_cpu_kick(void *env);
void qemu_cpu_kick_self(void);
-int qemu_cpu_self(void *env);
+int qemu_cpu_is_self(void *env);
/* work queue */
struct qemu_work_item {