public void Signal() { // The last thread to signal also sets the event. if (Interlocked.Decrement(ref m_remain) == 0) m_event.Set(); }
public override void onEchoEvent(EchoEvent e) { receivedEvent = e; _latch.Signal(); }