summaryrefslogtreecommitdiffstats
path: root/src/presence/presence_state.h
diff options
context:
space:
mode:
authorFrédéric Brière <fbriere@fbriere.net>2019-07-03 01:18:13 -0400
committerFrédéric Brière <fbriere@fbriere.net>2019-07-03 01:18:13 -0400
commitcdc748e253432ae505dda64ad6f4038554301483 (patch)
tree00d07163e0c8bed960178581670f92a813ccb3df /src/presence/presence_state.h
parent05082ae12051821b1d969e6672d9e4e5afe1bc07 (diff)
downloadtwinkle-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/presence/presence_state.h')
0 files changed, 0 insertions, 0 deletions