mark logic critical sections in tables

This commit is contained in:
Redo0
2021-06-05 19:38:45 -05:00
parent 00dc81948d
commit bfa1190cfe
3 changed files with 3 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ Group = {}
function Group.new()
local o = {
-- Logic Critical
state = 0,
state_num = 0,
in_queue = 0,
@@ -193,6 +194,7 @@ function Group.setstate(group, state)
end
end
-- Logic Critical
function Group.update(group)
Group.setstate(group, group.state_num>0 and 1 or 0)
end