Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why std::io uses a ReentrantMutex #2

Open
philipc opened this issue Sep 7, 2021 · 1 comment
Open

why std::io uses a ReentrantMutex #2

philipc opened this issue Sep 7, 2021 · 1 comment

Comments

@philipc
Copy link

philipc commented Sep 7, 2021

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.

@BartMassey
Copy link
Owner

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants