summaryrefslogtreecommitdiffstats
path: root/qemu-thread.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-02 17:21:31 +0200
committerAndreas Färber <afaerber@suse.de>2012-08-02 18:11:11 +0200
commit2d797b6520d38bc66827b2022e9c620058f18de3 (patch)
treecbd53e9258d1580a1edecf3f6aa51c0d14f7e3b3 /qemu-thread.h
parent02d2bd5d57812154cfb978bc2098cf49d551583d (diff)
downloadhqemu-2d797b6520d38bc66827b2022e9c620058f18de3.zip
hqemu-2d797b6520d38bc66827b2022e9c620058f18de3.tar.gz
qemu-thread: Let qemu_thread_is_self() return bool
qemu_cpu_is_self(), passing the return value through, will later be adapted to return bool as well. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'qemu-thread.h')
-rw-r--r--qemu-thread.h3
1 files changed, 2 insertions, 1 deletions
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 <inttypes.h>
+#include <stdbool.h>
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
OpenPOWER on IntegriCloud