Method | 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 |
Method | Description | |
---|---|---|
Enter ( bool &lockTaken ) : void | ||
Exit ( ) : void | ||
Exit ( bool useMemoryBarrier ) : void |
public SpinLock ( bool enableThreadOwnerTracking ) : System | ||
enableThreadOwnerTracking | bool | If set to |
return | System |
public TryEnter ( TimeSpan timeout, bool &lockTaken ) : void | ||
timeout | TimeSpan | |
lockTaken | bool | |
return | void |
public TryEnter ( int millisecondsTimeout, bool &lockTaken ) : void | ||
millisecondsTimeout | int | |
lockTaken | bool | |
return | void |