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

Afficher le fichier Open project: debop/NFramework

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat void

Execute() public méthode

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

Exit() public méthode

Exit wrapped SpinLock
public Exit ( ) : void
Résultat void

Exit() public méthode

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. ///
Résultat void

SpinLockClass() public méthode

기본 생성자
public SpinLockClass ( ) : System
Résultat System

SpinLockClass() public méthode

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