SIL.Utils.GlobalMutex.Unlink C# (CSharp) Method

Unlink() public method

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.
public Unlink ( ) : bool
return bool
		public bool Unlink()
		{
			CheckDisposed();

			return m_adapter.Unlink();
		}

Usage Example

		public void Initialize_CreatedNew_ReturnsTrue()
		{
			using (var mutex = new GlobalMutex("test"))
			{
				mutex.Unlink();
				Assert.That(mutex.Initialize(), Is.True);
				mutex.Unlink();
			}
		}
All Usage Examples Of SIL.Utils.GlobalMutex::Unlink