Manages parallel for loops. Cannot handle general task-based parallelism.
Inheritance: IParallelLooper, IDisposable
        internal ParallelLoopWorker(ParallelLooper manager, Action threadStart)
        {
            this.manager = manager;
            this.threadStart = threadStart;

            getToWork = new AutoResetEvent(false);

            thread = new Thread(Work) { IsBackground = true };
            thread.Start();
        }
Esempio n. 2
0
        internal ParallelLoopWorker(ParallelLooper manager, Action threadStart)
        {
            this.manager     = manager;
            this.threadStart = threadStart;

            getToWork = new AutoResetEvent(false);

            thread = new Thread(Work)
            {
                IsBackground = true
            };
            thread.Start();
        }