Catrobat.IDE.WindowsShared.Utilities.BSemaphore.OnSuccessfullWait C# (CSharp) Method

OnSuccessfullWait() protected method

protected OnSuccessfullWait ( ) : void
return void
        protected override void OnSuccessfullWait()
        {
            var res = Interlocked.Decrement(ref _count);
            Debug.Assert(res >= 0, "The decremented value should be always >= 0.");
            if (res > 0)
                _ewh.Set();
        }