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(); }
public MonoThreadedFiberSynchronizationContextTest() { _Fiber = new MonoThreadedFiber(t => t.Priority = ThreadPriority.Highest); _Dispatcher = new MonoThreadedFiberSynchronizationContext(_Fiber); }
public FiberTaskSchedulerTest() { _MonoThreadedFiber = new MonoThreadedFiber(); _FiberTaskScheduler = new FiberTaskScheduler(_MonoThreadedFiber); }