Пример #1
0
 public BpsShare(BpsLimiter limiter)
 {
     this.limiter = limiter;
     lock (limiter)
     {
         limiter.threads++;
     }
 }
Пример #2
0
 public void Dispose()
 {
     if (limiter != null)
     {
         lock (limiter)
         {
             limiter.threads--;
         }
         limiter = null;
     }
 }