Exemple #1
0
        public async Task Test_Queue_Performance(IMpScQueue <IWorkItem> queueWorkItem)
        {
            Output(queueWorkItem.GetType().Name);

            var fiber   = new MonoThreadedFiber(null, queueWorkItem);
            var factory = _FactoryBuilder.GetFactoryForFiber(fiber);

            await TestNoTask(factory);

            await fiber.DisposeAsync();
        }
Exemple #2
0
 public MonoThreadedFiberSynchronizationContextTest()
 {
     _Fiber      = new MonoThreadedFiber(t => t.Priority = ThreadPriority.Highest);
     _Dispatcher = new MonoThreadedFiberSynchronizationContext(_Fiber);
 }
 public FiberTaskSchedulerTest()
 {
     _MonoThreadedFiber  = new MonoThreadedFiber();
     _FiberTaskScheduler = new FiberTaskScheduler(_MonoThreadedFiber);
 }