C# 클래스 Platform.AutoLock

An IAutoLock implementation that uses a monitor for the lock.
상속: IAutoLock
파일 보기 프로젝트 열기: platformdotnet/Platform

공개 메소드들

메소드 설명
AutoLock ( ) : System

Creates a new AutoLock using the new AutoLock as the monitor for locking.

AutoLock ( object lockObject ) : System

Creates a new AutoLock using the supplied object as the monitor for locking.

Lock ( ) : AutoLock

Locks the current object's monitor.

Unlock ( ) : AutoLock

Unlocks the current object's monitor.

비공개 메소드들

메소드 설명
IAutoLock ( ) : IAutoLock

Locks the current object's monitor.

IDisposable ( ) : void

Unlocks the current object's monitor.

메소드 상세

AutoLock() 공개 메소드

Creates a new AutoLock using the new AutoLock as the monitor for locking.
public AutoLock ( ) : System
리턴 System

AutoLock() 공개 메소드

Creates a new AutoLock using the supplied object as the monitor for locking.
public AutoLock ( object lockObject ) : System
lockObject object The object for locking
리턴 System

Lock() 공개 메소드

Locks the current object's monitor.
public Lock ( ) : AutoLock
리턴 AutoLock

Unlock() 공개 메소드

Unlocks the current object's monitor.
public Unlock ( ) : AutoLock
리턴 AutoLock