C# Class Agnos.Utils.ReentrantLock

A utility class that implements a reentrant lock (that may be locked multiple times by the same thread), as well as the IsHeldByCurrentThread() query
Afficher le fichier Open project: tomerfiliba/agnos

Méthodes publiques

Méthode Description
Acquire ( ) : void

acquires the lock. the lock must be released the same number of times it's been locked

IsHeldByCurrentThread ( ) : bool

tests whether the lock is held by the current (calling) thread

ReentrantLock ( ) : System
Release ( ) : void

releases the lock (must be called one for every Acquire())

Method Details

Acquire() public méthode

acquires the lock. the lock must be released the same number of times it's been locked
public Acquire ( ) : void
Résultat void

IsHeldByCurrentThread() public méthode

tests whether the lock is held by the current (calling) thread
public IsHeldByCurrentThread ( ) : bool
Résultat bool

ReentrantLock() public méthode

public ReentrantLock ( ) : System
Résultat System

Release() public méthode

releases the lock (must be called one for every Acquire())
public Release ( ) : void
Résultat void