Skip to content

Atomic drain set #17

@zakarumych

Description

@zakarumych

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions