Class ADT.TreeScheduler()->Consumer
- Description
A resource consumer.
All consumers (both active and inactive) are nodes in a dependency tree. This means that to avoid excessive garbage detach() must be called in consumers that are no longer to be used.
Active consumers are kept in a (min-)Heap.
- Variable children
array
(Consumer
) ADT.TreeScheduler.Consumer.children- Description
Consumers that depend on us.
- Inherit this_program
inherit ::this_program : this_program
- Method create
ADT.TreeScheduler.Consumer ADT.TreeScheduler.Consumer(
int
|float
weight
,mixed
v
,Consumer
|void
parent
)