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

2014-01-04 Thread Marin Ramesa
Red-black tree is used which simplifies the code. Instead of clear_wait(), thread_wakeup_prim() is used with the waiter's offset as the event, which removes the need for a seperate cross wake function. Value at the futex address is retrieved via a copyin() call and the compare before the block is

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

2014-01-04 Thread Justus Winter
Hi :) Quoting Marin Ramesa (2014-01-04 11:12:42) This is not yet ready to be called from userspace since glibc build on the Hurd doesn't seem to compile the new RPCs. I don't know how to actually call them. mig is your friend: % mig pong.defs % ls pong* pong.defs pong.h pongServer.c