mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
4557 ndc thread local (#4682)
* fix(NestedDiagnosticContext): NDC crashed in multi-thread environment * fix(NestedDiagnosticContext): TestCase output redirect * enh(NestedDiagnosticContext): replace Poco::ThreadLocal to C++ standard thread_local so that objects can dtor when thread exit * enh(NestedDiagnosticContext): remove unused header files * chore(NDCTest): verify dump content * chore(NDCTest): use __FILE__ macro * fix(NDCTest): fix codeql warning * fix(NDCTest): remove temp code * enh(NestedDiagnosticContext): add nameOnly for dump --------- Co-authored-by: Alex Fabijanic <alex@pocoproject.org>
This commit is contained in:
@@ -89,9 +89,11 @@ public:
|
||||
/// to the given stream. The entries are delimited by
|
||||
/// a newline.
|
||||
|
||||
void dump(std::ostream& ostr, const std::string& delimiter) const;
|
||||
void dump(std::ostream& ostr, const std::string& delimiter, bool nameOnly = false) const;
|
||||
/// Dumps the stack (including line number and filenames)
|
||||
/// to the given stream.
|
||||
/// If nameOnly is false (default), the whole path to file is printed,
|
||||
/// otherwise only the file name.
|
||||
|
||||
void clear();
|
||||
/// Clears the NDC stack.
|
||||
|
||||
Reference in New Issue
Block a user