C# 클래스 EpLibrary.cs.MutexEx

A class that handles the mutex functionality
상속: BaseLock, IDisposable
파일 보기 프로젝트 열기: juhgiyo/EpLibrary.cs 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Dispose ( ) : void
IsMutexAbandoned ( ) : bool

Returns the flag whether this mutex is abandoned or not.

Lock ( ) : bool

Locks the critical section

MutexEx ( MutexEx b ) : System

Default copy constructor

MutexEx ( String mutexName = null ) : System

Default constructor

MutexEx ( bool isInitialOwned, String mutexName = null ) : System

Default Constructor

TryLock ( ) : bool

Try to lock the critical section If other thread is already in the critical section, it just returns false and continue, otherwise obtain the ciritical section

TryLockFor ( int dwMilliSecond ) : bool

Try to lock the critical section for given time

Unlock ( ) : void

Leave the critical section

보호된 메소드들

메소드 설명
Dispose ( bool isDisposing ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool isDisposing ) : void
isDisposing bool
리턴 void

IsMutexAbandoned() 공개 메소드

Returns the flag whether this mutex is abandoned or not.
public IsMutexAbandoned ( ) : bool
리턴 bool

Lock() 공개 메소드

Locks the critical section
public Lock ( ) : bool
리턴 bool

MutexEx() 공개 메소드

Default copy constructor
public MutexEx ( MutexEx b ) : System
b MutexEx the object to copy from
리턴 System

MutexEx() 공개 메소드

Default constructor
public MutexEx ( String mutexName = null ) : System
mutexName String name of the mutex
리턴 System

MutexEx() 공개 메소드

Default Constructor
public MutexEx ( bool isInitialOwned, String mutexName = null ) : System
isInitialOwned bool flag to own the mutex on creation
mutexName String name of the mutex
리턴 System

TryLock() 공개 메소드

Try to lock the critical section If other thread is already in the critical section, it just returns false and continue, otherwise obtain the ciritical section
public TryLock ( ) : bool
리턴 bool

TryLockFor() 공개 메소드

Try to lock the critical section for given time
public TryLockFor ( int dwMilliSecond ) : bool
dwMilliSecond int the wait time
리턴 bool

Unlock() 공개 메소드

Leave the critical section
public Unlock ( ) : void
리턴 void