[Development] Question about QCoreApplicationData::*_libpaths

Thiago Macieira thiago.macieira at intel.com
Fri Jan 22 17:44:40 CET 2016

On Friday 22 January 2016 11:14:47 Marc Mutz wrote:
> On Friday 22 January 2016 09:57:00 Иван Комиссаров wrote:
> > What
> > i'm missing?
> You haven't done the exercise with the int first.

Here's the exercise with int. This is thread-safe:

int f()
	return 1;

	auto x = f();

No matter how many threads call f(), all of them will get a value from f, can 
assign it to a variable and modify without caring what other threads do.

Replace int with QMap or QString and you have the same behaviour.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list