Registering and waking AtomicWakers should not use global critical sections. I propose creating a variant that uses Lock instead. Lock is word sized, so sharing a lock between AtomicWakers would not reduce the memory footprint, and would just cause more contention.
Registering and waking AtomicWakers should not use global critical sections. I propose creating a variant that uses Lock instead. Lock is word sized, so sharing a lock between AtomicWakers would not reduce the memory footprint, and would just cause more contention.