C# Class System.Threading.ClientSpinLock

显示文件 Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Methods

Method Description
ClientSpinLock ( bool enableThreadOwnerTracking ) : System
Enter ( bool &lockTaken ) : void
TryEnter ( System.TimeSpan timeout, bool &lockTaken ) : void
TryEnter ( bool &lockTaken ) : void
TryEnter ( int millisecondsTimeout, bool &lockTaken ) : void

Private Methods

Method Description
Exit ( ) : void
Exit ( bool useMemoryBarrier ) : void

Method Details

ClientSpinLock() public method

public ClientSpinLock ( bool enableThreadOwnerTracking ) : System
enableThreadOwnerTracking bool
return System

Enter() public method

public Enter ( bool &lockTaken ) : void
lockTaken bool
return void

TryEnter() public method

public TryEnter ( System.TimeSpan timeout, bool &lockTaken ) : void
timeout System.TimeSpan
lockTaken bool
return void

TryEnter() public method

public TryEnter ( bool &lockTaken ) : void
lockTaken bool
return void

TryEnter() public method

public TryEnter ( int millisecondsTimeout, bool &lockTaken ) : void
millisecondsTimeout int
lockTaken bool
return void