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
Afficher le fichier Open project: areiter/InMemoryFuzzing Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

LockProvider() public méthode

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