Rethinking the futex API
Rethinking the futex API
Posted Jun 21, 2020 17:44 UTC (Sun) by itsmycpu (guest, #139639)In reply to: Rethinking the futex API by pbonzini
Parent article: Rethinking the futex API
> On the other hand it makes the implementation of pthread_barrier_t less efficient because every slow-path wakeup needs a separate system call.
Again a reason to add a "FUTEX_WAKE_MULTIPLE" kernel API, or "futex_wakev" ("wake" not "wait"), that takes a vector of multiple futex addresses as parameter.
