7 references to Count
System.ServiceModel.Primitives (7)
Internals\System\Runtime\IOThreadScheduler.cs (7)
142
bool wasIdle = Bits.
Count
(slot) == 0;
146
Contract.Assert(Bits.
Count
(slot) != 0, "IOTS went idle when it shouldn't have.");
150
if (Bits.
Count
(slot) == -1)
182
Contract.Assert(Bits.
Count
(slot) != -1, "CompletionCallback called on idle IOTS!");
184
bool wasEmpty = Bits.
Count
(slot) == 0;
208
if (Bits.
Count
(slot) > 0)
265
Contract.Assert(Bits.
Count
(_headTail) == -1, "IOTS finalized while not idle.");