summaryrefslogtreecommitdiff
path: root/core/tape.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/tape.zig')
-rw-r--r--core/tape.zig15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/tape.zig b/core/tape.zig
index f9303d67..934bc499 100644
--- a/core/tape.zig
+++ b/core/tape.zig
@@ -114,7 +114,6 @@ pub const Site = enum(u16) {
fonts,
// Read in place (`value`).
clock,
- budget,
wake,
env,
interpreter,
@@ -768,12 +767,6 @@ pub const Tape = struct {
return t.value(.authority, f, args);
}
- /// A budget of `budget_ns` from `since_ns` on the monotonic clock is spent:
- /// what the clock said is taped, so a replica stops its work where this did.
- pub fn over(t: *Tape, since_ns: u64, budget_ns: u64) bool {
- return t.value(.budget, overNow, .{ since_ns, budget_ns });
- }
-
/// A body whose first parameter is an `std.Io` its caller does not pass
/// is handed the tape's (`args` are the rest): the only way core/ comes
/// to hold one.
@@ -1324,14 +1317,6 @@ pub fn resync(t: *Tape) void {
t.real = .{};
}
-pub fn over(since_ns: u64, budget_ns: u64) bool {
- return (on orelse &none).over(since_ns, budget_ns);
-}
-
-fn overNow(since_ns: u64, budget_ns: u64) bool {
- return pardes.FrameStats.nowNs() -| since_ns > budget_ns;
-}
-
/// One host call, `f(args)`, made out of the turn (pardes.turn).
pub fn out(comptime f: anytype, args: anytype) @typeInfo(@TypeOf(f)).@"fn".return_type.? {
pardes.turn.yield();