C# 클래스 System.Threading.SpinLock

파일 보기 프로젝트 열기: spicypixel/concurrency-kit-cs 1 사용 예제들

공개 메소드들

메소드 설명
SpinLock ( bool enableThreadOwnerTracking ) : System

Initializes a new instance of the System.Threading.SpinLock struct.

TryEnter ( TimeSpan timeout, bool &lockTaken ) : void
TryEnter ( bool &lockTaken ) : void
TryEnter ( int millisecondsTimeout, bool &lockTaken ) : void

비공개 메소드들

메소드 설명
Enter ( bool &lockTaken ) : void
Exit ( ) : void
Exit ( bool useMemoryBarrier ) : void

메소드 상세

SpinLock() 공개 메소드

Initializes a new instance of the System.Threading.SpinLock struct.
public SpinLock ( bool enableThreadOwnerTracking ) : System
enableThreadOwnerTracking bool If set to true enable thread owner tracking.
리턴 System

TryEnter() 공개 메소드

public TryEnter ( TimeSpan timeout, bool &lockTaken ) : void
timeout TimeSpan
lockTaken bool
리턴 void

TryEnter() 공개 메소드

public TryEnter ( bool &lockTaken ) : void
lockTaken bool
리턴 void

TryEnter() 공개 메소드

public TryEnter ( int millisecondsTimeout, bool &lockTaken ) : void
millisecondsTimeout int
lockTaken bool
리턴 void