qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 609f2fa] qemu-thread: use pthread_equal


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 609f2fa] qemu-thread: use pthread_equal
Date: Wed, 22 Jul 2009 16:26:30 -0000

From: Sebastian Herbszt <address@hidden>

Fixes

qemu-thread.c: In function `qemu_thread_equal':
qemu-thread.c:161: error: invalid operands to binary ==

Use of pthread_equal suggested by Filip Navara.

Signed-off-by: Sebastian Herbszt <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/qemu-thread.c b/qemu-thread.c
index 719cfcd..3923db7 100644
--- a/qemu-thread.c
+++ b/qemu-thread.c
@@ -158,6 +158,6 @@ void qemu_thread_self(QemuThread *thread)
 
 int qemu_thread_equal(QemuThread *thread1, QemuThread *thread2)
 {
-   return (thread1->thread == thread2->thread);
+   return pthread_equal(thread1->thread, thread2->thread);
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]