예제 #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;
     }
 }