6 writes to m_processingCount
mscorlib (6)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (6)
296
m_processingCount
= EXCLUSIVE_PROCESSING_SENTINEL; // -1
308
m_processingCount
= 0;
323
++
m_processingCount
;
332
--
m_processingCount
;
389
m_processingCount
= 0;
449
if (m_processingCount > 0) --
m_processingCount
;
15 references to m_processingCount
mscorlib (15)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (15)
194
if (!CompletionRequested ||
m_processingCount
!= 0) return false;
279
if (
m_processingCount
>= 0)
293
if (
m_processingCount
== 0 && exclusiveTasksAreWaiting)
318
if (concurrentTasksWaitingCount > 0 && !exclusiveTasksAreWaiting &&
m_processingCount
< m_maxConcurrencyLevel)
321
for (int i = 0; i < concurrentTasksWaitingCount &&
m_processingCount
< m_maxConcurrencyLevel; ++i)
342
else Contract.Assert(
m_processingCount
== EXCLUSIVE_PROCESSING_SENTINEL, "The processing count must be the sentinel if it's not >= 0.");
351
Contract.Requires(
m_processingCount
== EXCLUSIVE_PROCESSING_SENTINEL, "Processing exclusive tasks requires being in exclusive mode.");
388
Contract.Assert(
m_processingCount
== EXCLUSIVE_PROCESSING_SENTINEL, "The processing mode should not have deviated from exclusive.");
401
Contract.Requires(
m_processingCount
> 0, "Processing concurrent tasks requires us to be in concurrent mode.");
448
Contract.Assert(
m_processingCount
> 0, "The procesing mode should not have deviated from concurrent.");
449
if (
m_processingCount
> 0) --m_processingCount;
710
get { return (m_pair.
m_processingCount
== EXCLUSIVE_PROCESSING_SENTINEL) ? 1 : m_pair.
m_processingCount
; }
727
if (
m_processingCount
== EXCLUSIVE_PROCESSING_SENTINEL) mode |= ProcessingMode.ProcessingExclusiveTask;
728
if (
m_processingCount
>= 1) mode |= ProcessingMode.ProcessingConcurrentTasks;