internal BlockingExecutorService(string name, bool ownTimer, bool daemon)
        {
            if (name == null)
            {
                name = "BlockingExecutorService-" + Interlocked.Increment(ref index);
            }

            runner = new BlockingQueueConsumer(Flowable.BufferSize(), name, daemon);

            if (ownTimer)
            {
                this.timed = new TimedBlockingExecutor(name + ":Timed");
            }
            else
            {
                this.timed = TimedExecutorPool.TimedExecutor;
            }
        }
Ejemplo n.º 2
0
 internal SingleThreadedExecutor(string name)
 {
     runner    = new BlockingQueueConsumer(Flowable.BufferSize(), name);
     timed     = TimedExecutorPool.TimedExecutor;
     this.name = name;
 }