summaryrefslogtreecommitdiff
path: root/src/dump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/dump.zig')
-rw-r--r--src/dump.zig13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/dump.zig b/src/dump.zig
index 102b10d0..7f45ecc8 100644
--- a/src/dump.zig
+++ b/src/dump.zig
@@ -768,7 +768,8 @@ const SlotRecord = struct {
values: []const u8 = "",
live: bool = false,
/// What decides its next calls (Kind.step): a replica joining keeps
- /// them, its Shadow calling where the authority's kind does.
+ /// them, its pane of a kind with no code there calling where the
+ /// authority's kind does.
next_tick: u64 = 0,
views: [views.max]u64 = @splat(0),
focused: bool = false,
@@ -832,7 +833,8 @@ pub fn slotRecord(s: *Kind.Slot) !?[]u8 {
}
/// The pane back from its record, a placeholder holding it until its
-/// kind opens it (`revivePane`; a replica's core keeps it a Shadow).
+/// kind opens it (`revivePane`; a replica's core with no code for it keeps
+/// it so).
pub fn slotRead(out: *Kind.Slot, gpa: std.mem.Allocator, bytes: []const u8) !void {
var arena: std.heap.ArenaAllocator = .init(gpa);
defer arena.deinit();
@@ -880,9 +882,10 @@ pub fn reviveSlot(p: *Pardes, id: usize, s: *Kind.Slot) void {
} else {
s.version = p.kinds.kinds[k].version;
if (s.ops == null) {
- // A replica's Shadow is the authority's pane as it is: it ticks
- // when that one does, not because it was loaded (a kind opened
- // here ticks to lay itself out).
+ // A replica's pane of a kind with no code there is the
+ // authority's as it is: it ticks when that one does, not
+ // because it was loaded (a kind opened here ticks to lay
+ // itself out).
s.next_tick, s.views, s.focused = kept;
}
}