pike.git / lib / modules / ADT.pmod / TreeScheduler.pike

version» Context lines:

pike.git/lib/modules/ADT.pmod/TreeScheduler.pike:5:   inherit .Scheduler;      //! This class implements an hierarchial quantized resource scheduler.   //!   //! It differs from @[Scheduler] by the [Consumer]s making   //! up a dependency tree.   //!   //! Active consumers closer to the root will receive the resource   //! before their children.   //! - //! Implements most of RFC 7540 section 5.3. + //! Implements most of @rfc{7540@} section 5.3.   //!   //! @seealso   //! @[Scheduler]      //! 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.
pike.git/lib/modules/ADT.pmod/TreeScheduler.pike:140:    //! inactive (ie @[remove]d).    //!    //! @param 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 +  //! To perform the exclusive mode reparent from @rfc{7540@}    //! figure 5, call @[reparent_siblings()] after this function.    //!    //! @seealso    //! @[detach()], @[remove()], @[create()], @[reparent_siblings()]    void set_parent(Consumer new_parent, int|float weight)    {    if (!new_parent) new_parent = root;       if (new_parent == parent) {    this_program::weight = weight;