internal void IncrementInProcess() { lock (_inProcessLock) { _inProcessCounter++; if (_inProcessCounter == 1) { //we were free, but not anymore _ready.WaitOne(); } } }