diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-12 01:20:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-12 02:15:14 +0900 |
| commit | 620062cca92b6241c15f96f86a9c6f0f7882ecca (patch) | |
| tree | 400b5e46d0166d954373483fd948055d6f807cac /internal/outcome/shim.go | |
| parent | 196b200d0f19c41730db439c62db9b39e424f21f (diff) | |
hst: expose scheduling priority
This is useful when limits are configured to allow it.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/shim.go')
| -rw-r--r-- | internal/outcome/shim.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/outcome/shim.go b/internal/outcome/shim.go index 6d3e8d8b..a35ea1fe 100644 --- a/internal/outcome/shim.go +++ b/internal/outcome/shim.go @@ -75,6 +75,8 @@ type shimParams struct { // Copied from [hst.Config]. SchedPolicy std.SchedPolicy + // Copied from [hst.Config]. + SchedPriority std.Int // Outcome setup ops, contains setup state. Populated by outcome.finalise. Ops []outcomeOp @@ -276,6 +278,7 @@ func shimEntrypoint(k syscallDispatcher) { z := container.New(ctx, msg) z.SetScheduler = state.Shim.SchedPolicy > 0 z.SchedPolicy = state.Shim.SchedPolicy + z.SchedPriority = state.Shim.SchedPriority z.Params = *stateParams.params z.Stdin, z.Stdout, z.Stderr = os.Stdin, os.Stdout, os.Stderr |
