Exemplo n.º 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)));
 }
Exemplo n.º 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)));
 }
Exemplo n.º 3
0
 /// <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)));
 }