mark logic critical sections in tables
This commit is contained in:
parent
00dc81948d
commit
bfa1190cfe
@ -5,6 +5,7 @@ Gate = {}
|
||||
|
||||
function Gate.new(objref, definition)
|
||||
local o = {
|
||||
-- Logic Critical
|
||||
in_queue = 0,
|
||||
logic = definition.logic,
|
||||
ports = {},
|
||||
|
@ -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
|
||||
|
@ -20,7 +20,6 @@ Port = {}
|
||||
function Port.new(type, direction, position, causeupdate, idx, gate)
|
||||
local o = {
|
||||
group = nil,
|
||||
|
||||
type = type,
|
||||
direction = direction,
|
||||
position = position,
|
||||
|
Loading…
x
Reference in New Issue
Block a user