Method ADT.TreeScheduler()->Consumer()->set_parent()
- Method
set_parent
voidset_parent(Consumer(<ValueType>)new_parent,int|floatweight)- Description
Change to a new parent.
- Parameter
new_parent Consumer this object depends on. We will only get returned by get() when
new_parentis inactive (ie removed).- Parameter
weight New weight.
- Note
If
new_parentdepends on us, it will be moved to take our place in depending on our old parent.- Note
To perform the exclusive mode reparent from RFC 7540 figure 5, call reparent_siblings() after this function.
- See also