public void Increment() { _mutex.WaitOne(); if (++_remain > 0) _event.Reset(); _mutex.ReleaseMutex(); }