poco icon indicating copy to clipboard operation
poco copied to clipboard

NestedDiagnosticContext crashed in multi-thread environment

Open siren186 opened this issue 9 months ago • 0 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

siren186 avatar May 14 '24 01:05 siren186