From 2d797b6520d38bc66827b2022e9c620058f18de3 Mon Sep 17 00:00:00 2001 From: Andreas Färber 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-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qemu-thread-win32.c') diff --git a/qemu-thread-win32.c b/qemu-thread-win32.c index 3524c8b785..177b398cc4 100644 --- a/qemu-thread-win32.c +++ b/qemu-thread-win32.c @@ -330,7 +330,7 @@ HANDLE qemu_thread_get_handle(QemuThread *thread) return handle; } -int qemu_thread_is_self(QemuThread *thread) +bool qemu_thread_is_self(QemuThread *thread) { return GetCurrentThreadId() == thread->tid; } -- cgit 1.4.1