[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1233911220-27912-1-git-send-email-bert.wesarg@googlemail.com>
Date: Fri, 6 Feb 2009 10:07:00 +0100
From: Bert Wesarg <bert.wesarg@...glemail.com>
To: Mathieu Desnoyers <compudj@...stal.dyndns.org>
Cc: linux-kernel@...r.kernel.org,
Bert Wesarg <bert.wesarg@...glemail.com>
Subject: [PATCH urcu] Use pthread_equal() for pthread_t's equality test
Signed-off-by: Bert Wesarg <bert.wesarg@...glemail.com>
---
urcu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/urcu.c b/urcu.c
index d0d6138..e401d8d 100644
--- a/urcu.c
+++ b/urcu.c
@@ -185,7 +185,7 @@ void urcu_remove_reader(pthread_t id)
assert(reader_data != NULL);
for (index = reader_data; index < reader_data + num_readers; index++) {
- if (index->tid == id) {
+ if (pthread_equal(index->tid, id)) {
memcpy(index, &reader_data[num_readers - 1],
sizeof(struct reader_data));
reader_data[num_readers - 1].tid = 0;
--
1.6.1.rc4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists