Skip to content

Document when to use std::thread::yield_now vs. std::sync::atomic::spin_loop_hint #55418

Closed
@frewsxcv

Description

@frewsxcv

On the surface, these functions seem very similar. When is it appropriate to use one vs. the other?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.P-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions