projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98294b2
)
qemu-thread: use pthread_equal
author
Sebastian Herbszt
<herbszt@gmx.de>
Sun, 19 Jul 2009 13:16:09 +0000
(15:16 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Wed, 22 Jul 2009 15:58:49 +0000
(10:58 -0500)
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>
qemu-thread.c
patch
|
blob
|
history
diff --git
a/qemu-thread.c
b/qemu-thread.c
index 719cfcddd4b154efad48e23648c4307003470dec..3923db74ee1b3be1859ad401900d445872f3cea1 100644
(file)
--- a/
qemu-thread.c
+++ b/
qemu-thread.c
@@
-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);
}