diff options
author | B Stack <bgstack15@gmail.com> | 2019-06-14 22:33:49 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-06-14 22:33:49 -0400 |
commit | 583d22efb5901296d1e3dcbc091be5dee9d8a14f (patch) | |
tree | cc720d69d3ca68b64ed0aa79438177b6953469a1 /zen/globals.h | |
parent | Merge branch '10.12' into 'master' (diff) | |
download | FreeFileSync-583d22efb5901296d1e3dcbc091be5dee9d8a14f.tar.gz FreeFileSync-583d22efb5901296d1e3dcbc091be5dee9d8a14f.tar.bz2 FreeFileSync-583d22efb5901296d1e3dcbc091be5dee9d8a14f.zip |
10.13
Diffstat (limited to 'zen/globals.h')
-rw-r--r-- | zen/globals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/globals.h b/zen/globals.h index 024147fa..e0bfd362 100644 --- a/zen/globals.h +++ b/zen/globals.h @@ -17,7 +17,7 @@ namespace zen /* Solve static destruction order fiasco by providing shared ownership and serialized access to global variables -=>there may be accesses to "Global<T>::get()" during process shutdown e.g. _("") used by message in debug_minidump.cpp or by some detached thread assembling an error message! +=> there may be accesses to "Global<T>::get()" during process shutdown e.g. _("") used by message in debug_minidump.cpp or by some detached thread assembling an error message! => use trivially-destructible POD only!!! ATTENTION: function-static globals have the compiler generate "magic statics" == compiler-genenerated locking code which will crash or leak memory when accessed after global is "dead" |