Skip to content

why std::io uses a ReentrantMutex #2

@philipc

Description

@philipc

From the readme:

Figure out why std::io uses a ReentrantMutex so that we can find out whether we should too. parking_lot has one if needed.

This was added in rust-lang/rust#24029 to allow locking stdout for the whole print!() without risk of deadlocking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions