Re: [PATCH v15] kern: simple futex for gnumach

2014-01-15 Thread Samuel Thibault
Justus Winter, le Wed 15 Jan 2014 18:24:54 +0100, a écrit : > 3. futexes should work across process boundaries so that one can build >inter-process synchronization mechanisms with that. (note: that was precisely one of the whole intent of implementing futexes :) ) Samuel

Re: [PATCH v15] kern: simple futex for gnumach

2014-01-15 Thread Justus Winter
Quoting Marin Ramesa (2014-01-15 14:12:08) > On 01/15/2014 10:56:25 AM, Justus Winter wrote: > > > I tested a simple userspace mutex based on this and multiple > > futexes, > > > all tests passed. > > > > Could you put that somewhere? I still have so little "context", I'd > > like to see how fut

Re: [PATCH v15] kern: simple futex for gnumach

2014-01-15 Thread Marin Ramesa
On 01/15/2014 10:56:25 AM, Justus Winter wrote: > I tested a simple userspace mutex based on this and multiple futexes, > all tests passed. Could you put that somewhere? I still have so little "context", I'd like to see how futexe are used in a mutex implementation. Here's what I used: #inc

Re: [PATCH v15] kern: simple futex for gnumach

2014-01-15 Thread Justus Winter
Quoting Marin Ramesa (2014-01-15 01:48:01) > So, I decided to keep working on this. Awesome :) > [..] > I tested a simple userspace mutex based on this and multiple futexes, > all tests passed. Could you put that somewhere? I still have so little "context", I'd like to see how futexe are used i

[PATCH v15] kern: simple futex for gnumach

2014-01-14 Thread Marin Ramesa
So, I decided to keep working on this. Thanks Diego for finding bugs in my usage of rbtree nodes, this was the reason why shared futex was not always waking the threads, I wrongly concluded that the (VM object, offset) pair is not constant enough. Anyway I'm now using queue macros which simplifies