pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.

Home Page:https://pocoproject.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NestedDiagnosticContext crashed in multi-thread environment

siren186 opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.

NestedDiagnosticContext& NestedDiagnosticContext::current()
{
	static NestedDiagnosticContext ndc;
	return ndc;
}

It should use Thread Local Storage to store the NDC context. Not a singleton.

Please add relevant environment information:

  • Windows 10
  • poco-1.13.3