C# Класс 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
Показать файл Открыть проект

Открытые методы

Метод Описание
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())

Описание методов

Acquire() публичный Метод

acquires the lock. the lock must be released the same number of times it's been locked
public Acquire ( ) : void
Результат void

IsHeldByCurrentThread() публичный Метод

tests whether the lock is held by the current (calling) thread
public IsHeldByCurrentThread ( ) : bool
Результат bool

ReentrantLock() публичный Метод

public ReentrantLock ( ) : System
Результат System

Release() публичный Метод

releases the lock (must be called one for every Acquire())
public Release ( ) : void
Результат void