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>
stable-0.12
Sebastian Herbszt 2009-07-19 15:16:09 +02:00 committed by Anthony Liguori
parent 7ea78b7489
commit 609f2fabab
1 changed files with 1 additions and 1 deletions

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);
}