Method | Description | |
---|---|---|
Enter ( bool &lockTaken ) : void |
Enters the lock. lockTaken 은 입력 시에는 항상 False 값을 가져야 합니다.
|
|
Execute ( System.Action runUnderLock ) : void |
지정된 delegate을 lock을 건 상태에서 실행합니다.
|
|
Exit ( ) : void |
Exit wrapped SpinLock
|
|
Exit ( bool useMemoryBarrier ) : void |
Exit wrapped SpinLock
|
|
SpinLockClass ( ) : System |
기본 생성자
|
|
SpinLockClass ( bool enableThreadOwnerTracking ) : System |
생성자
|
public Enter ( bool &lockTaken ) : void | ||
lockTaken | bool | /// Upon exit of the Enter method, specifies whether the lock was acquired. /// The variable passed by reference must be initialized to false. /// |
return | void |
public Execute ( System.Action runUnderLock ) : void | ||
runUnderLock | System.Action | 실행할 delegate |
return | void |
public Exit ( bool useMemoryBarrier ) : void | ||
useMemoryBarrier | bool | /// A Boolean value that indicates whether a memory fence should be issued in /// order to immediately publish the exit operation to other threads. /// |
return | void |
public SpinLockClass ( bool enableThreadOwnerTracking ) : System | ||
enableThreadOwnerTracking | bool | 디버깅을 위해 threadID를 Tracking 할 것인지 여부 |
return | System |