-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
Description
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).