C# Class Platform.AutoLock

An IAutoLock implementation that uses a monitor for the lock.
Inheritance: IAutoLock
Afficher le fichier Open project: platformdotnet/Platform

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
IAutoLock ( ) : IAutoLock

Locks the current object's monitor.

IDisposable ( ) : void

Unlocks the current object's monitor.

Method Details

AutoLock() public méthode

Creates a new AutoLock using the new AutoLock as the monitor for locking.
public AutoLock ( ) : System
Résultat System

AutoLock() public méthode

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

Lock() public méthode

Locks the current object's monitor.
public Lock ( ) : AutoLock
Résultat AutoLock

Unlock() public méthode

Unlocks the current object's monitor.
public Unlock ( ) : AutoLock
Résultat AutoLock