C# 클래스 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
파일 보기 프로젝트 열기: areiter/InMemoryFuzzing 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AcquireLock() 공개 메소드

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

LockProvider() 공개 메소드

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