Skip to content

sync confusingly defines 3 types called Mutex #14530

Closed
@huonw

Description

@huonw

There's sync::Mutex<T>, sync::raw::Mutex and sync::mutex::Mutex. The latter two have similar signatures (no contained data) and similar but slightly different APIs. The docs don't describe the difference in detail.

This is pretty confusing (renaming and/or documenting better would be a good fix).

cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions