You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found a workaround: you can lock stdout before calling printstd() because the lock is reentrant in practice, although it is not documented. I created an extension method printstdlocked(&self) which calls std::io::stdout().lock() before calling self.printstd();
The program below produces garbled output:
main.rs:
Cargo.toml:
The text was updated successfully, but these errors were encountered: