mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
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
1 changed files with 1 additions and 1 deletions
|
@ -158,6 +158,6 @@ void qemu_thread_self(QemuThread *thread)
|
||||||
|
|
||||||
int qemu_thread_equal(QemuThread *thread1, QemuThread *thread2)
|
int qemu_thread_equal(QemuThread *thread1, QemuThread *thread2)
|
||||||
{
|
{
|
||||||
return (thread1->thread == thread2->thread);
|
return pthread_equal(thread1->thread, thread2->thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue