Wakeup worker per eventfd
- Feb 19, 2021
-
-
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.
-