IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Lib.UtilSettings Class Reference

Static Public Member Functions

static bool MutexCheckAbandoned (Mutex m)
 Check whether the specified mutex has been abandoned, and returns true if it has been (otherwise, false is returned). More...
 
static bool MutexGlobalCheckAbandoned ()
 Check whether the global mutex (property MutexGlobal) has been abandoned, and returns true if it has been (otherwise, false is returned). More...
 

Public Attributes

const string MutexGlobalName = "Global\\IG.Lib.Utils.MutexGlobal.xx"
 Name of the global mutex. More...
 

Static Protected Attributes

static volatile Mutex _mutexGlobal
 

Properties

static Mutex MutexGlobal [get]
 Mutex for system-wide exclusive locks. More...
 

Member Function Documentation

static bool IG.Lib.UtilSettings.MutexCheckAbandoned ( Mutex  m)
inlinestatic

Check whether the specified mutex has been abandoned, and returns true if it has been (otherwise, false is returned).

After the call, mutex is no longer in abandoned state (WaitOne() will not throw an exception) if it has been before the call.

Call does not block.

Parameters
mMutex that is checked, must not be null.
Returns
true if mutex has been abandoned, false otherwise.
static bool IG.Lib.UtilSettings.MutexGlobalCheckAbandoned ( )
inlinestatic

Check whether the global mutex (property MutexGlobal) has been abandoned, and returns true if it has been (otherwise, false is returned).

After the call, mutex is no longer in abandoned state (WaitOne() will not throw an exception) if it has been before the call.

Call does not block.

Returns
true if mutex has been abandoned, false otherwise.

Member Data Documentation

const string IG.Lib.UtilSettings.MutexGlobalName = "Global\\IG.Lib.Utils.MutexGlobal.xx"

Name of the global mutex.

volatile Mutex IG.Lib.UtilSettings._mutexGlobal
staticprotected

Property Documentation

Mutex IG.Lib.UtilSettings.MutexGlobal
staticget

Mutex for system-wide exclusive locks.


The documentation for this class was generated from the following file: