[Development] HEADS-UP: QStringLiteral

Philippe philwave at gmail.com
Tue Aug 20 23:25:27 CEST 2019


> 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 <thiago.macieira at intel.com> 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
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development





More information about the Development mailing list