]> git.proxmox.com Git - qemu.git/commitdiff
qemu-thread: use pthread_equal
authorSebastian Herbszt <herbszt@gmx.de>
Sun, 19 Jul 2009 13:16:09 +0000 (15:16 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Jul 2009 20:41:02 +0000 (15:41 -0500)
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 <herbszt@gmx.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-thread.c

index 719cfcddd4b154efad48e23648c4307003470dec..3923db74ee1b3be1859ad401900d445872f3cea1 100644 (file)
@@ -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);
 }