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