1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 10:35:10 +00:00

Make setting getters/setters atomic.

This commit is contained in:
Pavel Labath 2010-10-31 00:22:35 +02:00
parent 214ed0ac87
commit 104ae7454c
2 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ namespace conky {
void config_setting_base::lua_set(lua::state &l)
{
std::lock_guard<lua::state> guard(l);
lua::stack_sentry s(l, -1);
l.checkstack(2);

View File

@ -209,6 +209,7 @@ namespace conky {
template<typename T>
T config_setting_template<T>::get(lua::state &l)
{
std::lock_guard<lua::state> guard(l);
lua::stack_sentry s(l);
l.checkstack(2);