Common contract implemented by multi-lane free-index allocators.
Allocation lanes make independent irrevocable offers. Release lanes are ordered from lowest to highest lane so duplicate same-cycle returns have a deterministic owner.
- Implementers
Properties
- allocatedCount → Logic
-
Number of currently allocated indices.
no setter
- allocatedMask → Logic
-
One bit per currently allocated index.
no setter
- allocationLaneCount → int
-
Number of independent allocation lanes.
no setter
-
allocations
→ List<
IrrevocableReadyValidInterface< Logic> > -
Independent irrevocable streams offering free indices.
no setter
- availableCount → Logic
-
Number of indices not yet accepted from an allocation lane.
no setter
- capacity → int
-
Number of independently managed indices.
no setter
- exhausted → Logic
-
High when every index is allocated.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexWidth → int
-
Width required to represent every managed index.
no setter
- releaseLaneCount → int
-
Number of ordered release lanes.
no setter
-
releases
→ List<
ReadyValidInterface< TagRelease> > -
Ordered streams returning previously allocated indices.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited