diff options
author | Frédéric Brière <fbriere@fbriere.net> | 2019-07-03 01:18:13 -0400 |
---|---|---|
committer | Frédéric Brière <fbriere@fbriere.net> | 2019-07-03 01:18:13 -0400 |
commit | cdc748e253432ae505dda64ad6f4038554301483 (patch) | |
tree | 00d07163e0c8bed960178581670f92a813ccb3df /src/parser/definitions.cpp | |
parent | 05082ae12051821b1d969e6672d9e4e5afe1bc07 (diff) | |
download | twinkle-cdc748e253432ae505dda64ad6f4038554301483.tar twinkle-cdc748e253432ae505dda64ad6f4038554301483.tar.gz twinkle-cdc748e253432ae505dda64ad6f4038554301483.tar.lz twinkle-cdc748e253432ae505dda64ad6f4038554301483.tar.xz twinkle-cdc748e253432ae505dda64ad6f4038554301483.zip |
Use a mutex in all t_sys_settings getters/setters, even bool
Despite what one might intuitively expect, the C++ standard does not
make any guarantee about fundamental types being atomic, not even bool.
(In fact, it explicitly mentions the existence of std::atomic<bool> for
that purpose.)
See https://stackoverflow.com/a/35226186 for more details about this
subject.
Diffstat (limited to 'src/parser/definitions.cpp')
0 files changed, 0 insertions, 0 deletions