Re: [reSIProcate] [reSIProcate-commit] resiprocate 8871 sgodin: -fixed potential multi-threading issues with static member variable initialization
Hi Scott,
There is some intricacy of C++ that I don't understand. Could you explain the thread safety issue below? Is there a difference in when the constructors/destructors are called?
Thanks,
Kennard
+static const Data errorContextData("Contents");
const Data&
Contents::errorContext() const
{
- static const Data context("Contents");
- return context;
+ return errorContextData;
}