X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Freferencesource%2FSystem.Core%2FSystem%2FLinq%2FParallel%2FScheduling%2FOrderPreservingPipeliningSpoolingTask.cs;h=598d1e13aa3edbf10c8865de6a9a52dc678f1c76;hb=4df88aea4b841eed9614455a8b71d4a446a44cc6;hp=f1e99baedb4ce522c751ad8098306333091d47c1;hpb=8d1a18d611a7e44bf9cdac34039652d1c325f5b0;p=mono.git diff --git a/mcs/class/referencesource/System.Core/System/Linq/Parallel/Scheduling/OrderPreservingPipeliningSpoolingTask.cs b/mcs/class/referencesource/System.Core/System/Linq/Parallel/Scheduling/OrderPreservingPipeliningSpoolingTask.cs index f1e99baedb4..598d1e13aa3 100644 --- a/mcs/class/referencesource/System.Core/System/Linq/Parallel/Scheduling/OrderPreservingPipeliningSpoolingTask.cs +++ b/mcs/class/referencesource/System.Core/System/Linq/Parallel/Scheduling/OrderPreservingPipeliningSpoolingTask.cs @@ -25,7 +25,9 @@ namespace System.Linq.Parallel class OrderPreservingPipeliningSpoolingTask : SpoolingTaskBase { private readonly QueryTaskGroupState m_taskGroupState; // State shared among tasks. +#if !MONO private readonly TaskScheduler m_taskScheduler; // The task manager to execute the query. +#endif private readonly QueryOperatorEnumerator m_partition; // The source partition. private readonly bool[] m_consumerWaiting; // Whether a consumer is waiting on a particular producer private readonly bool[] m_producerWaiting; // Whether a particular producer is waiting on the consumer @@ -83,7 +85,9 @@ namespace System.Linq.Parallel m_partitionIndex = partitionIndex; m_buffers = buffers; m_bufferLock = bufferLock; +#if !MONO m_taskScheduler = taskScheduler; +#endif m_autoBuffered = autoBuffered; }