BehindAtLevel

data class BehindAtLevel(val parent: GroupId, val nextChild: GroupId, val leafSideVirtualService: Rational, val front: Rational, val eligibleFront: Rational) : WaitExplanation

Another child goes first at parent, the first group on the leaf's lineage where the next pick leaves it: nextChild is the child it picks there instead.

leafSideVirtualService is the effective virtual service of the leaf's own child of parent, wake clamp included. The two fronts are weighted means of the same quantity, wake clamps included, over two different sets of parent's children (FairShareAllocator.virtualTime):

  • eligibleFront is over the children leading to a leaf of the eligible set: the line the pick itself draws. The pick reads it on each side's own grid, rounded up to the next tick of that side's service (#3313), so a side up to one tick above it was still a candidate. Past that, the leaf's side was not a candidate this slot. At or below it, it was one, and nextChild's earlier virtual deadline (or, on a tie, its smaller edge id) decided the pick.

  • front is over the children leading to a leaf of the waiting set: the share line, the front a newborn is seated at and the set LocalHeddle.entitlement shares over. Above it, the leaf's side has had more than its share of everyone waiting; at or below it, less. It says nothing about why this pick went elsewhere: a side below front can still be above eligibleFront, when the children this slot cannot run are the ones pulling front up.

Constructors

Link copied to clipboard
constructor(parent: GroupId, nextChild: GroupId, leafSideVirtualService: Rational, front: Rational, eligibleFront: Rational)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

front, exact and never held; as leafSideVirtualServiceWide.

Link copied to clipboard
open override val kind: WaitExplanation.Kind

The arm, by name. Declared in the order LocalHeddle.explain checks them.

Link copied to clipboard

leafSideVirtualService, exact and never held (design §7.1). Set by LocalHeddle.explain; null on a value a caller built itself, and on any copy, which carries only the constructor's values. Not part of equals or the components, so a caller compiled against the three Rationals is unaffected.

Link copied to clipboard
Link copied to clipboard