ActiveMQ.Util.EventSemaphore.PulseAll C# (CSharp) Метод

PulseAll() публичный Метод

public PulseAll ( ) : void
Результат void
        public void PulseAll()
        {
            lock(this)
            {
                Monitor.PulseAll(this);
                //mutex.Set();
            }
        }

Usage Example

 public void countDown()
 {
     lock (mutex)
     {
         if (remaining > 0)
         {
             remaining--;
             if (remaining <= 0)
             {
                 mutex.PulseAll();
             }
         }
     }
 }
EventSemaphore