refs #522, mutex for mutable members (thread safe)

* copy/assignment/lock for mutable members
* also removed redundant in status message (slack discussion MS/KB)
This commit is contained in:
Klaus Basan
2015-11-26 02:31:13 +01:00
parent a4ba45ce75
commit d6733d49bb
13 changed files with 115 additions and 73 deletions

View File

@@ -67,17 +67,11 @@ namespace BlackMisc
//! Returns an encoded category string with the debug flag appended.
static QString addDebugFlag(const QString &category);
//! Returns an encoded category string with the redundant flag appended.
static QString addRedundantFlag(const QString &category);
//! Strips all flags from an encoded category string, returning only the plain category string.
static QString stripFlags(const QString &category);
//! Returns true if the given encoded category string has the debug flag.
static bool hasDebugFlag(const QString &category);
//! Returns true if the given encoded category string has the redundant flag.
static bool hasRedundantFlag(const QString &category);
};
/*!
@@ -173,7 +167,6 @@ namespace BlackMisc
CLogCategoryList m_categories = CLogCategoryList { CLogCategory::uncategorized() };
QString m_message;
QStringList m_args;
bool m_redundant = false;
CLogMessage &arg(QString value) { m_args.push_back(value); return *this; }
QString message() const;