C# Class NSoft.NFramework.Parallelism.DataStructures.SpinLockClass

Show file Open project: debop/NFramework

Public Methods

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

생성자

Method Details

Enter() public method

Enters the lock. lockTaken 은 입력 시에는 항상 False 값을 가져야 합니다.
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

Execute() public method

지정된 delegate을 lock을 건 상태에서 실행합니다.
public Execute ( System.Action runUnderLock ) : void
runUnderLock System.Action 실행할 delegate
return void

Exit() public method

Exit wrapped SpinLock
public Exit ( ) : void
return void

Exit() public method

Exit wrapped SpinLock
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

SpinLockClass() public method

기본 생성자
public SpinLockClass ( ) : System
return System

SpinLockClass() public method

생성자
public SpinLockClass ( bool enableThreadOwnerTracking ) : System
enableThreadOwnerTracking bool 디버깅을 위해 threadID를 Tracking 할 것인지 여부
return System