C# Class Iaik.Utils.Locking.LockProvider

Replacement locking method
See the example of how to use this. It should only be used in combination with the using(...) statement and provides a replacement for the lock(...) statement with the enhancement that e.g. a locking hierachy can be written to console (or somewhere else), for debugging purpose
Exibir arquivo Open project: areiter/InMemoryFuzzing Class Usage Examples

Public Methods

Method Description
AcquireLock ( ) : LockContext

Acquires the lock, use LockContext.Dispose or embedd the contex into a using statement to release the lock

LockProvider ( object lockTarget, string description ) : System

Creates a new LockProvider with the specified lockTarget and description

Method Details

AcquireLock() public method

Acquires the lock, use LockContext.Dispose or embedd the contex into a using statement to release the lock
public AcquireLock ( ) : LockContext
return LockContext

LockProvider() public method

Creates a new LockProvider with the specified lockTarget and description
public LockProvider ( object lockTarget, string description ) : System
lockTarget object
description string
return System