This commit is contained in:
Daniel Mills
2020-08-21 03:48:53 -04:00
parent 7b94d753b8
commit 39b7563d3a
24 changed files with 773 additions and 29 deletions

View File

@@ -101,7 +101,7 @@ public class AtomicSliver
modified = true;
block.put(h, d);
if(B.isLit(d))
if(B.isUpdatable(d))
{
update(h);
}
@@ -293,4 +293,9 @@ public class AtomicSliver
{
return M.ms() - last > m;
}
public void inject(KSet<Integer> updatables)
{
update.addAll(updatables);
}
}

View File

@@ -114,4 +114,15 @@ public class AtomicSliverMap
return false;
}
public void injectUpdates(AtomicSliverMap map)
{
for(int i = 0; i < 16; i++)
{
for(int j = 0; j < 16; j++)
{
getSliver(i, j).inject(map.getSliver(i, j).getUpdatables());
}
}
}
}