Re: [RFC] kern: simple futex for gnumach (version 8)

2013-12-31 Thread Richard Braun
On Sun, Dec 29, 2013 at 09:44:51PM +0100, Marin Ramesa wrote: > Futex waiters are now in a list and some bugs were fixed. > > I think this is now ready for test. I have tested this with > malloc() and free() instead of kalloc() and kfree(), but > without vm_map_lookup() and assert_wait() since the

Re: [RFC] kern: simple futex for gnumach (version 8)

2013-12-31 Thread Richard Braun
On Tue, Dec 31, 2013 at 04:26:01PM +0100, Richard Braun wrote: > On Sun, Dec 29, 2013 at 09:44:51PM +0100, Marin Ramesa wrote: > > + simple_lock(&futex->futex_wait_lock); > > + > > + /* If the value is still the same. */ > > + if (*address == value) { In addition, suc

Re: [RFC] kern: simple futex for gnumach (version 8)

2013-12-31 Thread Marin Ramesa
On 12/31/2013 04:26:01 PM, Richard Braun wrote: On Sun, Dec 29, 2013 at 09:44:51PM +0100, Marin Ramesa wrote: > Futex waiters are now in a list and some bugs were fixed. > > I think this is now ready for test. I have tested this with > malloc() and free() instead of kalloc() and kfree(), but > wi