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:
parent
7ea78b7489
commit
609f2fabab
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user