Slight performance improvement.

Only need to check whether the current program is blocked, since the
other will have switched if it was going to block.
This commit is contained in:
2017-12-18 14:05:00 +01:00
parent ffb6c52910
commit 80bf90c034

View File

@@ -117,7 +117,7 @@ end
while true do while true do
instr = instructions[iptr[pid]] instr = instructions[iptr[pid]]
if waiting[0] and waiting[1] then if waiting[pid] then
print("Deadlocked!") print("Deadlocked!")
break break
end end