Esempio n. 1
0
 /// <summary>
 /// Create a scheduler that executes tasks in dynamically adjustable
 /// intervals
 /// </summary>
 /// <param name="suspend_interval">
 /// The time that the scheduler will wait for
 /// at least one task to be placed in the task queue before suspending
 /// the scheduling thread
 /// </param>
 public TimeScheduler(long suspend_interval)
 {
     queue = new EventQueue();
     this.suspend_interval = suspend_interval;
 }
Esempio n. 2
0
		/// <summary>
		/// Create a scheduler that executes tasks in dynamically adjustable
		/// intervals
		/// </summary>
		/// <param name="suspend_interval">
		/// The time that the scheduler will wait for
		/// at least one task to be placed in the task queue before suspending
		/// the scheduling thread
		/// </param>
		public TimeScheduler(long suspend_interval) 
		{
			queue = new EventQueue();
			this.suspend_interval = suspend_interval;
		}