Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners - v2

2008-09-05 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > @@ -230,18 +230,20 @@ static inline int mutex_save_count(xnthr > > mutex = shadow->mutex; > > - if (clear_claimed(xnarch_atomic_intptr_get(mutex->o

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners - v2

2008-09-05 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: @@ -230,18 +230,20 @@ static inline int mutex_save_count(xnthr mutex = shadow->mutex; - if (clear_claimed(xnarch_atomic_intptr_get(mutex->owner)) != cur) + if

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners - v2

2008-09-05 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> @@ -230,18 +230,20 @@ static inline int mutex_save_count(xnthr >>> >>> mutex = shadow->mutex; >>> >>> - if (clear_claimed(xnarch_atomic_intptr_get(mutex->owner)) != cur) >>> + if (clear_claimed(xnarch_atomic_get(mu

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners - v2

2008-09-05 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> @@ -230,18 +230,20 @@ static inline int mutex_save_count(xnthr >> >> mutex = shadow->mutex; >> >> -if (clear_claimed(xnarch_atomic_intptr_get(mutex->owner)) != cur) >> +if (clear_claimed(xnarch_atomic_get(mutex->owner)) != >> +

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners - v2

2008-09-05 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > @@ -230,18 +230,20 @@ static inline int mutex_save_count(xnthr > > mutex = shadow->mutex; > > - if (clear_claimed(xnarch_atomic_intptr_get(mutex->owner)) != cur) > + if (clear_claimed(xnarch_atomic_get(mutex->owner)) != > + xnthread_handle(cur)) >

[Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners - v2

2008-09-05 Thread Jan Kiszka
Jan Kiszka wrote: > To improve robustness of the fast mutex implementation in POSIX (and > later on in native), it is better to track the mutex owner by handle > instead of kernel object pointer. Therefore, this patch changes > __xn_sys_current (xeno_set_current) so that it returns > xnthread_handl

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners

2008-09-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > To improve robustness of the fast mutex implementation in POSIX (and > later on in native), it is better to track the mutex owner by handle > instead of kernel o

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners

2008-09-01 Thread Jan Kiszka
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > To improve robustness of the fast mutex implementation in POSIX (and > later on in native), it is better to track the mutex owner by handle > instead of kernel o

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners

2008-09-01 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: To improve robustness of the fast mutex implementation in POSIX (and later on in native), it is better to track the mutex owner by handle instead of kernel object pointer. Therefore,

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners

2008-09-01 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> To improve robustness of the fast mutex implementation in POSIX (and >>> later on in native), it is better to track the mutex owner by handle >>> instead of kernel object pointer. Therefore, this patch changes >>> __xn_sys_cur

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners

2008-09-01 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> To improve robustness of the fast mutex implementation in POSIX (and >> later on in native), it is better to track the mutex owner by handle >> instead of kernel object pointer. Therefore, this patch changes >> __xn_sys_current (xeno_set_current) s

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners

2008-09-01 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > To improve robustness of the fast mutex implementation in POSIX (and > later on in native), it is better to track the mutex owner by handle > instead of kernel object pointer. Therefore, this patch changes > __xn_sys_current (xeno_set_current) so that it returns > xnthread_handl

[Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners

2008-09-01 Thread Jan Kiszka
To improve robustness of the fast mutex implementation in POSIX (and later on in native), it is better to track the mutex owner by handle instead of kernel object pointer. Therefore, this patch changes __xn_sys_current (xeno_set_current) so that it returns xnthread_handle(current_thread). It furthe