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

* Re: [PATCH urcu] Use pthread_equal() for pthread_t's equality test
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Desnoyers @ 2009-05-12 18:54 UTC (permalink / raw)
  To: Bert Wesarg; +Cc: linux-kernel

* Bert Wesarg (bert.wesarg@googlemail.com) wrote:
> Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
> ---
>  urcu.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 

Hi Bert,

I have to ask all userspace RCU committers for permission to move the
code to LGPL. IBM already gave their approval. Is it OK with you wrt to
the patch you posted here ?

Mathieu

> 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
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

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

* Re: [PATCH urcu] Use pthread_equal() for pthread_t's equality test
  2009-05-12 18:54 ` Mathieu Desnoyers
@ 2009-05-13  5:08   ` Bert Wesarg
  0 siblings, 0 replies; 3+ messages in thread
From: Bert Wesarg @ 2009-05-13  5:08 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: linux-kernel

On Tue, May 12, 2009 at 20:54, Mathieu Desnoyers
<compudj@krystal.dyndns.org> wrote:
> * Bert Wesarg (bert.wesarg@googlemail.com) wrote:
>> Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
>> ---
>>  urcu.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>
> Hi Bert,
Hi Mathieu,
>
> I have to ask all userspace RCU committers for permission to move the
> code to LGPL. IBM already gave their approval. Is it OK with you wrt to
> the patch you posted here ?
Yes, it's ok.

Bert
>
> Mathieu

^ permalink raw reply	[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.