From 8ad62d6b00adf657ef7b468778a0964007aca383 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 24 Mar 2017 14:47:57 +0300 Subject: Fix diagnostics interleaving characters --- build2/dump.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build2/dump.cxx') diff --git a/build2/dump.cxx b/build2/dump.cxx index 7055a78..6d055ae 100644 --- a/build2/dump.cxx +++ b/build2/dump.cxx @@ -345,6 +345,9 @@ namespace build2 auto i (scopes.cbegin ()); assert (&i->second == global_scope); + // We don't lock diag_stream here as dump() is supposed to be called from + // the main thread prior to any other threads being spawned. + // string ind; ostream& os (*diag_stream); dump_scope (os, ind, i); -- cgit v1.1