Skip to content

mutex_atomic and CondVar #1516

Open
Open
@Yamakaky

Description

@Yamakaky

The example at https://doc.rust-lang.org/std/sync/struct.Condvar.html issues a mutex_atomic warning, suggesting the replacement of Mutex::new(false) by an AtomicBool. My understanding is that we need a mutex to use CondVar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.I-suggestion-causes-errorIssue: The suggestions provided by this Lint cause an ICE/error when applied

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions