C# Class System.Threading.ServerSpinLock

显示文件 Open project: dreamanlan/CSharpGameFramework

Public Methods

Method Description
Enter ( bool &lockTaken ) : void
ServerSpinLock ( bool enableThreadOwnerTracking ) : System
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

Enter() public method

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

ServerSpinLock() public method

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

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