Remove mention of Q_GLOBAL_STATIC being more thread safe than local statics
As of C++11 local statics are guaranteed to be thread safe, so this advantage doesn't hold anymore. Pick-to: 6.2 6.3 Change-Id: I9ac34b8af30e44ff8134e5f81f45c8aa0f8ddcc9 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
328ab29c25
commit
27f6c4106c
@ -70,10 +70,6 @@
|
||||
\li the order of initialization and destruction among different
|
||||
translation units is not determined, leading to possible uses before
|
||||
initialization or after destruction;
|
||||
|
||||
\li if it is found inside a function (that is, not global), it will be
|
||||
initialized on first use, but many current compilers (as of 2013) do
|
||||
not guarantee that the initialization will be thread-safe;
|
||||
\endlist
|
||||
|
||||
The Q_GLOBAL_STATIC macro solves all of the above problems by guaranteeing
|
||||
|
Loading…
x
Reference in New Issue
Block a user