ADLTest.CountdownLatch.Signal C# (CSharp) Method

Signal() public method

public Signal ( ) : void
return void
        public void Signal()
        {
            // The last thread to signal also sets the event.
            if (Interlocked.Decrement(ref m_remain) == 0)
                m_event.Set();
        }

Usage Example

Ejemplo n.º 1
0
 public override void onEchoEvent(EchoEvent e)
 {
     receivedEvent = e;
     _latch.Signal();
 }
All Usage Examples Of ADLTest.CountdownLatch::Signal