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