From 2d797b6520d38bc66827b2022e9c620058f18de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Wed, 2 May 2012 17:21:31 +0200 Subject: qemu-thread: Let qemu_thread_is_self() return bool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qemu_cpu_is_self(), passing the return value through, will later be adapted to return bool as well. Signed-off-by: Andreas Färber Reviewed-by: Stefan Weil --- qemu-thread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qemu-thread.h') diff --git a/qemu-thread.h b/qemu-thread.h index a78a8f2..05fdaaf 100644 --- a/qemu-thread.h +++ b/qemu-thread.h @@ -2,6 +2,7 @@ #define __QEMU_THREAD_H 1 #include +#include typedef struct QemuMutex QemuMutex; typedef struct QemuCond QemuCond; @@ -42,7 +43,7 @@ void qemu_thread_create(QemuThread *thread, void *arg, int mode); void *qemu_thread_join(QemuThread *thread); void qemu_thread_get_self(QemuThread *thread); -int qemu_thread_is_self(QemuThread *thread); +bool qemu_thread_is_self(QemuThread *thread); void qemu_thread_exit(void *retval); #endif -- cgit v1.1