[lkml]   [2010]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: 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.)


     \ /
      Last update: 2010-04-09 12:57    [W:0.017 / U:7.060 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site