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.
- Inherit
this_program
inherit ::this_program(<>) : this_programValueType
- Variable
children
array(Consumer(<>)) ADT.TreeScheduler.Consumer.childrenValueType- Description
Consumers that depend on us.
- Variable
parent
Consumer(<>)|ValueTypezeroADT.TreeScheduler.Consumer.parent- Description
Consumer that we depend on.
- Method
create
ADT.TreeScheduler.Consumer ADT.TreeScheduler.Consumer(int|floatweight,ValueTypev,Consumer(<>)|ValueTypevoidparent)