ff804778c8
write_fmt calls write for each formatted field. The default implementation of write_fmt is used,
which will call write on not-yet-locked stdout (and write locking after), therefore making print!
in multithreaded environment still interleave contents of two separate prints.
I’m not sure whether we want to do this change, though, because it has the same deadlock hazard which we tried to avoid by not locking inside write_fmt itself (see [this comment](
|
||
---|---|---|
.. | ||
buffered.rs | ||
cursor.rs | ||
error.rs | ||
impls.rs | ||
lazy.rs | ||
mod.rs | ||
prelude.rs | ||
stdio.rs | ||
util.rs |