Skip to content
Snippets Groups Projects
  • Florian Fischer's avatar
    96a846a1
    add semaphore using futex_waitv(2) supporting notify_specific · 96a846a1
    Florian Fischer authored
    The SpuriousFutex2Semaphore is able to notify a specific worker
    by using two futexes two wait on.
    
    One working like a normal semaphore used for global non specific
    notifications via notify() and notify_many().
    
    And a second one per worker which is based on a SleeperState.
    To notify a specific worker we change its SleeperState to Notified
    and call FUTEX_WAKE if needed.
    96a846a1
    History
    add semaphore using futex_waitv(2) supporting notify_specific
    Florian Fischer authored
    The SpuriousFutex2Semaphore is able to notify a specific worker
    by using two futexes two wait on.
    
    One working like a normal semaphore used for global non specific
    notifications via notify() and notify_many().
    
    And a second one per worker which is based on a SleeperState.
    To notify a specific worker we change its SleeperState to Notified
    and call FUTEX_WAKE if needed.
.gitlab-ci.yml 7.73 KiB