/// <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(); }
public AutoKiller(AlarmState s) { state = s; }
public AlarmThread(String name, AlarmState q) : base(q, name) { }
/// <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(); }
public AlarmThread(String name, AlarmState q) : base(q) { setName(name); InnerThread.IsBackground = true; }