amethyst / amethyst/hibitset

Atomic drain set

Abierto
#17 6 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Rust
Estrellas
131
Forks
33
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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).

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.