> There's no mutex.
On Visual Studio 2017 15.8.8, there is a mutex on the 1st call
(checked today when step tracing the assembly code).
Again, for block scope, that is:
void foo()
{
QString s = QStringLiteral("abc");
...
}
Philippe
On Tue, 20 Aug 2019 14:11:59 -0700
Thiago Macieira <[email protected]> wrote:
> On Tuesday, 20 August 2019 03:41:45 PDT Philippe wrote:
> > another Drawback : it causes a global mutex to be executed on first use
> > inside a block scope (c++11 static variable thread safety).
>
> There's no mutex.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
> Software Architect - Intel System Software Products
>
>
>
> _______________________________________________
> Development mailing list
> [email protected]
> https://lists.qt-project.org/listinfo/development
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development