/// <summary>
 /// Adds the specified request amount. Does not validate the number.
 /// </summary>
 /// <param name="n"></param>
 /// <returns></returns>
 public long Request(long n)
 {
     return(BackpressureHelper.Add(ref requested, n));
 }
示例#2
0
 internal long AddCap(long n)
 {
     return(BackpressureHelper.Add(ref value, n));
 }