/// <summary> /// Blocks the current thread until the current WaitHandle receives a signal, using a 32-bit signed integer to specify the time interval. /// </summary> /// <param name="millisecondsTimeout">The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely. If millisecondsTimeout is zero, the method does not block. It tests the state of the wait handle and returns immediately.</param> /// <returns>true if the current instance receives a signal; otherwise, false.</returns> public bool WaitOne(int millisecondsTimeout) { return(StMutex.WaitOne(millisecondsTimeout)); }
/// <summary> /// Blocks the current thread until the current WaitHandle receives a signal. (Inherited from WaitHandle.) /// </summary> /// <returns></returns> public bool WaitOne() { return(StMutex.WaitOne()); }