예제 #1
0
 public void ConcurrentStrandSchedulerPairTestsTestInitialize()
 {
     m_concurrentStrandSchedulerPair = new ConcurrentStrandSchedulerPair(MAX_TASKS_CONCURRENCY);
     m_strandTaskFactory             = new TaskFactory(m_concurrentStrandSchedulerPair.StrandScheduler);
     m_concurrentTaskFactory         = new TaskFactory(m_concurrentStrandSchedulerPair.ConcurrentScheduler);
 }
예제 #2
0
 public ConcurrentExclusiveSimpleIncrementTasks()
 {
     m_strandExclusiveSchedulerPair     = new ConcurrentStrandSchedulerPair(Environment.ProcessorCount);
     m_concurrentExclusiveSchedulerPair = new ConcurrentExclusiveSchedulerPair(TaskScheduler.Default, Environment.ProcessorCount);
 }
예제 #3
0
 public override void InitializeTest()
 {
     m_concurrentStrandSchedulerPair = new ConcurrentStrandSchedulerPair(MAX_TASKS_CONCURRENCY);
     m_concurrentScheduler           = m_concurrentStrandSchedulerPair.AsioStrandcheduler;
     base.InitializeTest();
 }