예제 #1
0
 /// <summary>
 /// Wait for a debug event.
 /// </summary>
 /// <param name="timeout_ms">Wait timeout in milliseconds.</param>
 /// <returns>The debug event.</returns>
 public DebugEvent WaitForDebugEvent(long timeout_ms)
 {
     return(WaitForDebugEvent(false, NtWaitTimeout.FromMilliseconds(timeout_ms)));
 }
예제 #2
0
 /// <summary>
 /// Sleep the current thread for a specified number of milliseconds.
 /// </summary>
 /// <param name="delay_ms">The delay in milliseconds.</param>
 /// <returns>True if the thread was alerted before the delay expired.</returns>
 public static bool SleepMs(long delay_ms)
 {
     return(Sleep(false, NtWaitTimeout.FromMilliseconds(delay_ms)));
 }
예제 #3
0
파일: NtTimer.cs 프로젝트: codehz/winsilo
 /// <summary>
 /// Set timer state in milliseconds.
 /// </summary>
 /// <param name="due_time_ms">The due time for the timer in milliseconds.</param>
 /// <returns>The previous state.</returns>
 public bool SetMs(long due_time_ms)
 {
     return(Set(NtWaitTimeout.FromMilliseconds(due_time_ms)));
 }