Re: Accessing struct pthread from kernel

2013-07-08 Thread John Baldwin
On Sunday, July 07, 2013 6:22:18 pm Davide Italiano wrote: > On Sun, Jul 7, 2013 at 2:34 PM, Konstantin Belousov wrote: > > On Sat, Jul 06, 2013 at 01:22:05AM +0200, Davide Italiano wrote: > >> Hi, > >> as a preliminary step in the implementation of adaptive spinning for > >> umtx, I'm switching

Re: Accessing struct pthread from kernel

2013-07-07 Thread Davide Italiano
On Sun, Jul 7, 2013 at 2:34 PM, Konstantin Belousov wrote: > On Sat, Jul 06, 2013 at 01:22:05AM +0200, Davide Italiano wrote: >> Hi, >> as a preliminary step in the implementation of adaptive spinning for >> umtx, I'm switching the pthread/umtx code so that a thread that >> acquires a pthread_mute

Re: Accessing struct pthread from kernel

2013-07-07 Thread Davide Italiano
On Sun, Jul 7, 2013 at 9:47 AM, Julian Elischer wrote: > On 7/6/13 7:22 AM, Davide Italiano wrote: >> >> Hi, >> as a preliminary step in the implementation of adaptive spinning for >> umtx, I'm switching the pthread/umtx code so that a thread that >> acquires a pthread_mutex writes the address of

Re: Accessing struct pthread from kernel

2013-07-07 Thread Julian Elischer
On 7/6/13 7:22 AM, Davide Italiano wrote: Hi, as a preliminary step in the implementation of adaptive spinning for umtx, I'm switching the pthread/umtx code so that a thread that acquires a pthread_mutex writes the address of struct pthread in the owner field of the lock instead of the thread id

Re: Accessing struct pthread from kernel

2013-07-07 Thread Konstantin Belousov
On Sat, Jul 06, 2013 at 01:22:05AM +0200, Davide Italiano wrote: > Hi, > as a preliminary step in the implementation of adaptive spinning for > umtx, I'm switching the pthread/umtx code so that a thread that > acquires a pthread_mutex writes the address of struct pthread in the > owner field of the

Accessing struct pthread from kernel

2013-07-05 Thread Davide Italiano
Hi, as a preliminary step in the implementation of adaptive spinning for umtx, I'm switching the pthread/umtx code so that a thread that acquires a pthread_mutex writes the address of struct pthread in the owner field of the lock instead of the thread id (tid). This is because having struct pthread