qemu-thread: use pthread_equal

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>
This commit is contained in:
Sebastian Herbszt
2009-07-22 10:58:49 -05:00
committed by Anthony Liguori
parent 7ea78b7489
commit 609f2fabab
+1 -1
View 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);
}