Skip to content

Expose is_always_lock_free as a macro #213

@SabrinaJewson

Description

@SabrinaJewson

Currently, the is_always_lock_free method provides a way of ascertaining whether a certain atomic implementation is lock-free as a const; but in today’s Rust one cannot, for example, allow the layouts of structs to depend on this value. To support this use-case, it might be nice to expose cfg_atomic_*_always_lock_free and cfg_atomic_*_not_always_lock_free alongside the other cfg_* macros.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: A new feature or an improvement for an existing one

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions