diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-02 17:21:31 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-08-02 18:11:11 +0200 |
commit | 2d797b6520d38bc66827b2022e9c620058f18de3 (patch) | |
tree | cbd53e9258d1580a1edecf3f6aa51c0d14f7e3b3 /qemu-thread-posix.c | |
parent | 02d2bd5d57812154cfb978bc2098cf49d551583d (diff) |
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-posix.c')
-rw-r--r-- | qemu-thread-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-thread-posix.c b/qemu-thread-posix.c index 9e1b5fbdaa..8fbabdac36 100644 --- a/qemu-thread-posix.c +++ b/qemu-thread-posix.c @@ -151,7 +151,7 @@ void qemu_thread_get_self(QemuThread *thread) thread->thread = pthread_self(); } -int qemu_thread_is_self(QemuThread *thread) +bool qemu_thread_is_self(QemuThread *thread) { return pthread_equal(pthread_self(), thread->thread); } |