Atomic drain set
Aperta
enhancement
- Lingua principale
- Rust
- Stelle
- 131
- Fork
- 33
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
It would be cool to have an `BitSetLike` which supports `add_atomic` as `AtomicBItSet` do but also `drain_atomic` which will unset all set bits yield their ids.
Implementation should be similar to `AtomicBItSet` except of using `Ordering::Release` in `add_atomic`. While draining it should swap mask with `0` using `Ordering::Acquire` and move to the next level for each bit set (yield at lowest level).
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.