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:
parent
214ed0ac87
commit
104ae7454c
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user