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
파일 보기 프로젝트 열기: tomerfiliba/agnos

공개 메소드들

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