Method ADT.TreeScheduler()->Consumer()->set_parent()


Method set_parent

void set_parent(Consumer new_parent, int|float weight)

Description

Change to a new parent.

Parameter new_parent

Consumer this object depends on. We will only get returned by get() when new_parent is inactive (ie removed).

Parameter weight

New weight.

Note

If new_parent depends 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

detach(), remove(), create(), reparent_siblings()