All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH urcu] Use pthread_equal() for pthread_t's equality test
@ 2009-02-06  9:07 Bert Wesarg
  2009-05-12 18:54 ` Mathieu Desnoyers
  0 siblings, 1 reply; 3+ messages in thread
From: Bert Wesarg @ 2009-02-06  9:07 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: linux-kernel, Bert Wesarg

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-13  5:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-06  9:07 [PATCH urcu] Use pthread_equal() for pthread_t's equality test Bert Wesarg
2009-05-12 18:54 ` Mathieu Desnoyers
2009-05-13  5:08   ` Bert Wesarg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.