/// <summary>Initializes the debug view.</summary>
 /// <param name="scheduler">The scheduler.</param>
 public QueuedTaskSchedulerDebugView(QueuedTaskScheduler scheduler)
 {
     if (scheduler == null)
     {
         throw new ArgumentNullException("scheduler");
     }
     _scheduler = scheduler;
 }
Ejemplo n.º 2
0
        private QueueTaskSchedWrapper()
        {
            int maxConcurrency = 8;

            queuedTaskScheduler         = new QueuedTaskScheduler(maxConcurrency);
            prioritySchedulerReferences = new ConcurrentDictionary <int, TaskScheduler>();
            Console.WriteLine("Test activation: {0}", queuedTaskScheduler.MaximumConcurrencyLevel);
        }
 /// <summary>Initializes the queue.</summary>
 /// <param name="priority">The priority associated with this queue.</param>
 /// <param name="pool">The scheduler with which this queue is associated.</param>
 internal QueuedTaskSchedulerQueue(int priority, QueuedTaskScheduler pool)
 {
     _priority  = priority;
     _pool      = pool;
     _workItems = new Queue <Task>();
 }