OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs
/// <summary>
/// Remove the rate requested by a child of this throttle. Pass the
/// changes up the hierarchy.
/// </summary>
Remove the rate requested by a child of this throttle. Pass the
changes up the hierarchy.
Remove the rate requested by a child of this throttle . Pass the changes up the hierarchy .
public void UnregisterRequest(TokenBucket child)
        {
            lock (m_children)
            {
                m_children.Remove(child);
                TotalDripRequest = 0;
                foreach (KeyValuePair<TokenBucket, Int64> cref in m_children)
                    TotalDripRequest += cref.Value;
            }
            if (Parent != null)
                Parent.RegisterRequest(this,Math.Min(RequestedDripRate, TotalDripRequest));
        }
public void UnregisterRequest ( TokenBucket child ) { lock ( m_children ) { m_children . Remove ( child ) ; TotalDripRequest = 0 ; foreach ( KeyValuePair < TokenBucket , Int64 > cref in m_children ) TotalDripRequest += cref . Value ; } if ( Parent != null ) Parent . RegisterRequest ( this , Math . Min ( RequestedDripRate , TotalDripRequest ) ) ; }
Remove the rate requested by a child of this throttle.
Remove the rate requested by a child of this throttle .
// Pass the new values up to the parent
child
TokenBucket