Messages in this thread |  | | | Date | Fri, 09 Apr 2010 12:54:26 +0200 | | From | Michael Schnell <> | | Subject | Re: atomic RAM ? |
| |
On 04/08/2010 04:15 PM, Arnd Bergmann wrote: > /* returns one if we got the lock, zero if someone else holds it */ > bool hashlock_addr(volatile void *addr); > I don't see how (to do FUTEX) a hashlock can be implemented in a way that we stay in user mode when locking it and - if it's already locked - we do a Kernel call for waiting on it being unlocked by another thread. (This is what FUTEX does.)
-Michael
|  |