summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-04-24 13:00:26 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-25 14:38:58 (GMT)
commit9b58190c8fb1e48ce02480f6a71f561f45299379 (patch)
tree7c200de5345f7ba7640104916b1edd031789f1c5 /Source/cmQtAutoGenerators.h
parent657a446175c1b61999a77958c5b7480f8be041a5 (diff)
downloadCMake-9b58190c8fb1e48ce02480f6a71f561f45299379.zip
CMake-9b58190c8fb1e48ce02480f6a71f561f45299379.tar.gz
CMake-9b58190c8fb1e48ce02480f6a71f561f45299379.tar.bz2
Autogen: Message cleanups: Compose messages in std::stringstream
To avoid Race conditions with other processes writing to stdout/stderr compose the whole message in a std::stringstream then submit the single complete message.
Diffstat (limited to 'Source/cmQtAutoGenerators.h')
-rw-r--r--Source/cmQtAutoGenerators.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmQtAutoGenerators.h b/Source/cmQtAutoGenerators.h
index 422e1ed..e46e0fc 100644
--- a/Source/cmQtAutoGenerators.h
+++ b/Source/cmQtAutoGenerators.h
@@ -83,8 +83,11 @@ private:
bool NameCollisionTest(const std::map<std::string, std::string >& genFiles,
std::multimap<std::string, std::string>& collisions );
void NameCollisionLog(
- const std::multimap<std::string, std::string>& collisions );
+ const std::string& message,
+ const std::multimap<std::string, std::string>& collisions );
+ void LogInfo(const std::string& message);
+ void LogError(const std::string& message);
void LogCommand(const std::vector<std::string>& command);
std::string JoinExts(const std::vector<std::string>& lst);