C# Class NanoByte.Common.AppMutex

Provides a cross-process object allowing easy dection of application instances (e.g., for use by installers and update tools).
System.Threading.Mutex is intended for synchronizing access to shared resources while this class is intended to detect application instances.
ファイルを表示 Open project: nano-byte/common Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Closes all contained handles, allowing the mutex to be released.

Private Methods

Method Description
AppMutex ( IEnumerable handles ) : System
Create ( [ name ) : bool
Create ( [ name, AppMutex &mutex ) : bool
Open ( [ name ) : bool
Probe ( [ name ) : bool

Method Details

Close() public method

Closes all contained handles, allowing the mutex to be released.
public Close ( ) : void
return void