Ejemplo n.º 1
0
 public Fiber(IExecutor executor        = null, int size = QueueSize.DefaultQueueSize, TaskFactory taskFactory = null,
              IFiberScheduler scheduler = null)
     : base(executor, scheduler)
 {
     _queue       = new ArrayQueue <Action>(size);
     _taskFactory = taskFactory ??
                    new TaskFactory(TaskCreationOptions.PreferFairness, TaskContinuationOptions.None);
     _flushCache = Flush;
 }