Skip to content
Snippets Groups Projects

Wakeup worker per eventfd

Closed Florian Fischer requested to merge aj46ezos/emper:wakeup_worker_per_eventfd into master
  1. Feb 19, 2021
    • Florian Fischer's avatar
      [Runtime] use a eventfd to suspend/wakeup workes · dae18a8e
      Florian Fischer authored
      I could not figure out a non-CAS algorithm for WorkerWakeupStrategy::one
      therefore we use a CAS loop and have to see how expensive it is.
      
      Using a eventfd has the advantage that we can't loose wakeups.
      If a worker registers it self sleeping by incrementing sleepingWorkers
      and another calls write before the first calls read the first will
      not block at all.
      dae18a8e
Loading