Example #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();
 }
Example #2
0
		public AutoKiller(AlarmState s)
		{
			state = s;
		}
Example #3
0
		public AlarmThread(String name, AlarmState q) 
			: base(q, name)
		{
		}
Example #4
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();
		}
Example #5
0
		public AlarmThread(String name, AlarmState q)
			: base(q)
		{
			setName(name);
			InnerThread.IsBackground = true;
		}
Example #6
0
 public AutoKiller(AlarmState s)
 {
     state = s;
 }
Example #7
0
 public AlarmThread(String name, AlarmState q)
     : base(q)
 {
     setName(name);
     InnerThread.IsBackground = true;
 }