示例#1
0
 /// <summary>Create a new timer to signal on interrupt on the caller.</summary>
 /// <remarks>
 /// Create a new timer to signal on interrupt on the caller.
 /// <p>
 /// The timer thread is created in the calling thread's ThreadGroup.
 /// </remarks>
 /// <param name="threadName">name of the timer thread.</param>
 public InterruptTimer(string threadName)
 {
     state      = new InterruptTimer.AlarmState();
     autoKiller = new InterruptTimer.AutoKiller(state);
     thread     = new InterruptTimer.AlarmThread(threadName, state);
     thread.Start();
 }
示例#2
0
 /// <summary>Create a new timer to signal on interrupt on the caller.</summary>
 /// <remarks>
 /// Create a new timer to signal on interrupt on the caller.
 /// <p/>
 /// The timer thread is created in the calling thread's ThreadGroup.
 /// </remarks>
 /// <param name="threadName">name of the timer thread.</param>
 public InterruptTimer(string threadName)
 {
     state = new InterruptTimer.AlarmState();
     autoKiller = new InterruptTimer.AutoKiller(state);
     thread = new InterruptTimer.AlarmThread(threadName, state);
     thread.Start();
 }