C# Class SIL.Utils.GlobalMutex.LinuxGlobalMutexAdapter

On Linux, the global mutex is implemented using file locks.
Inheritance: SIL.Utils.FwDisposableBase, IGlobalMutexAdapter
Datei anzeigen Open project: sillsdev/FieldWorks

Public Methods

Method Description
Init ( bool initiallyOwned ) : bool
LinuxGlobalMutexAdapter ( string name ) : System
Release ( ) : void
Unlink ( ) : bool
Wait ( ) : void

Protected Methods

Method Description
DisposeUnmanagedResources ( ) : void

Private Methods

Method Description
flock ( int handle, int operation ) : int

Method Details

DisposeUnmanagedResources() protected method

protected DisposeUnmanagedResources ( ) : void
return void

Init() public method

public Init ( bool initiallyOwned ) : bool
initiallyOwned bool
return bool

LinuxGlobalMutexAdapter() public method

public LinuxGlobalMutexAdapter ( string name ) : System
name string
return System

Release() public method

public Release ( ) : void
return void

Unlink() public method

public Unlink ( ) : bool
return bool

Wait() public method

public Wait ( ) : void
return void