System.Threading.Watch.Stop C# (CSharp) 메소드

Stop() 공개 메소드

public Stop ( ) : void
리턴 void
        public void Stop()
        {
        }

Usage Example

예제 #1
0
파일: SpinLock.cs 프로젝트: raj581/Marvin
        public void TryEnter(int milliSeconds, ref bool lockTaken)
        {
            //Thread.BeginCriticalRegion();

            Watch sw = Watch.StartNew();

            while (sw.ElapsedMilliseconds < milliSeconds)
            {
                TryEnter(ref lockTaken);
            }
            sw.Stop();
        }
All Usage Examples Of System.Threading.Watch::Stop