From: "Sebastian Herbszt" <herbszt@gmx.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] qemu-thread: use pthread_equal
Date: Sun, 19 Jul 2009 15:16:09 +0200 [thread overview]
Message-ID: <A10EAE98882E4F758CC6024232B18AD3@FSCPC> (raw)
In-Reply-To: <5b31733c0907190556x100a395dkc8f6252826d96df4@mail.gmail.com>
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>
--- qemu-2582/qemu-thread.c.orig Sun Jul 19 11:50:49 2009
+++ qemu-2582/qemu-thread.c Sun Jul 19 13:02:11 2009
@@ -158,6 +158,6 @@
int qemu_thread_equal(QemuThread *thread1, QemuThread *thread2)
{
- return (thread1->thread == thread2->thread);
+ return pthread_equal(thread1->thread, thread2->thread);
}
prev parent reply other threads:[~2009-07-19 13:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-19 12:41 [Qemu-devel] qemu-thread.c:161: error: invalid operands to binary == Sebastian Herbszt
2009-07-19 12:56 ` Filip Navara
2009-07-19 13:16 ` Sebastian Herbszt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A10EAE98882E4F758CC6024232B18AD3@FSCPC \
--to=herbszt@gmx.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).