Method | Description | |
---|---|---|
GlobalMutex ( string name ) : System |
Initializes a new instance of the GlobalMutex class.
|
|
Initialize ( ) : bool |
Initializes this mutex.
|
|
InitializeAndLock ( ) : IDisposable |
Initializes and locks this mutex. This is an atomic operation on Windows, but not Linux.
|
|
InitializeAndLock ( bool &createdNew ) : IDisposable |
Initializes and locks this mutex. On Windows, this is an atomic operation, so the "createdNew" variable is guaranteed to return a correct value. On Linux, this is not an atomic operation, so "createdNew" is guaranteed to be correct only if it returns true.
|
|
Lock ( ) : IDisposable |
Locks this mutex.
|
|
Unlink ( ) : bool |
Unlinks or removes the mutex from the system. This only has an effect on Linux. Windows will automatically unlink the mutex. This can be called while the mutex is locked.
|
Method | Description | |
---|---|---|
DisposeManagedResources ( ) : void |
Disposes managed resources.
|
public InitializeAndLock ( bool &createdNew ) : IDisposable | ||
createdNew | bool | |
return | IDisposable |