Commit 609f2fabab3ca9cedd69c499dc94bb2019d4f665

Authored by Sebastian Herbszt
Committed by Anthony Liguori
1 parent 7ea78b74

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>
Showing 1 changed file with 1 additions and 1 deletions
qemu-thread.c
... ... @@ -158,6 +158,6 @@ void qemu_thread_self(QemuThread *thread)
158 158  
159 159 int qemu_thread_equal(QemuThread *thread1, QemuThread *thread2)
160 160 {
161   - return (thread1->thread == thread2->thread);
  161 + return pthread_equal(thread1->thread, thread2->thread);
162 162 }
163 163  
... ...