C# Class Z.Expressions.SqlServer.Eval.SharedLock

A shared lock.
显示文件 Open project: zzzprojects/Eval-SQL.NET Class Usage Examples

Public Properties

Property Type Description
CacheItemLock int
ExpireCacheLock int

Public Methods

Method Description
AcquireLock ( int &lockValue ) : void

Acquires the lock on the specified lockValue.

ReleaseLock ( int &lockValue ) : void

Releases the lock on the specified lockValue.

TryAcquireLock ( int &lockValue ) : bool

Attempts to acquire lock on the specified lockvalue.

Method Details

AcquireLock() public static method

Acquires the lock on the specified lockValue.
public static AcquireLock ( int &lockValue ) : void
lockValue int [in,out] The lock value.
return void

ReleaseLock() public static method

Releases the lock on the specified lockValue.
public static ReleaseLock ( int &lockValue ) : void
lockValue int [in,out] The lock value.
return void

TryAcquireLock() public static method

Attempts to acquire lock on the specified lockvalue.
public static TryAcquireLock ( int &lockValue ) : bool
lockValue int [in,out] The lock value.
return bool

Property Details

CacheItemLock public_oe property

The counter lock.
public int CacheItemLock
return int

ExpireCacheLock public_oe property

The expire cache lock.
public int ExpireCacheLock
return int