SIL.Utils.GlobalMutex.Unlink C# (CSharp) Метод

Unlink() публичный Метод

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
Результат bool
		public bool Unlink()
		{
			CheckDisposed();

			return m_adapter.Unlink();
		}

Usage Example

Пример #1
0
		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