C# Class System.Threading.SpinLock

Afficher le fichier Open project: spicypixel/concurrency-kit-cs Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
Enter ( bool &lockTaken ) : void
Exit ( ) : void
Exit ( bool useMemoryBarrier ) : void

Method Details

SpinLock() public méthode

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

TryEnter() public méthode

public TryEnter ( TimeSpan timeout, bool &lockTaken ) : void
timeout TimeSpan
lockTaken bool
Résultat void

TryEnter() public méthode

public TryEnter ( bool &lockTaken ) : void
lockTaken bool
Résultat void

TryEnter() public méthode

public TryEnter ( int millisecondsTimeout, bool &lockTaken ) : void
millisecondsTimeout int
lockTaken bool
Résultat void