2 instantiations of IOThreadScheduler
System.ServiceModel.Primitives (2)
Internals\System\Runtime\IOThreadScheduler.cs (2)
55
private static IOThreadScheduler s_current = new
IOThreadScheduler
(32);
164
new
IOThreadScheduler
(Math.Min(_slots.Length * 2, MaximumCapacity));
13 references to IOThreadScheduler
System.ServiceModel.Primitives (13)
Internals\System\Runtime\ActionItem.cs (2)
77
IOThreadScheduler
.ScheduleCallbackNoFlow(callback, state);
86
Task<Task>.Factory.StartNew(callback, state, CancellationToken.None, TaskCreationOptions.DenyChildAttach,
IOThreadScheduler
.IOTaskScheduler);
Internals\System\Runtime\IOThreadScheduler.cs (5)
55
private static
IOThreadScheduler
s_current = new IOThreadScheduler(32);
163
IOThreadScheduler
next =
438
private
IOThreadScheduler
_scheduler;
489
IOThreadScheduler
iots = _scheduler;
520
public void Post(
IOThreadScheduler
iots)
Internals\System\Runtime\ServiceModelSynchronizationContext.cs (1)
16
Task.Factory.StartNew((s) => d(s), state, default, TaskCreationOptions.RunContinuationsAsynchronously,
IOThreadScheduler
.IOTaskScheduler);
Internals\System\Runtime\TaskHelpers.cs (5)
252
Fx.Assert(task.IsCompleted || !
IOThreadScheduler
.IsRunningOnIOThread, "Waiting on an IO Thread might cause problems");
266
Fx.Assert(!
IOThreadScheduler
.IsRunningOnIOThread, "Waiting on an IO Thread might cause problems");
278
Fx.Assert(task.IsCompleted || !
IOThreadScheduler
.IsRunningOnIOThread, "Waiting on an IO Thread might cause problems");
288
Fx.Assert(!
IOThreadScheduler
.IsRunningOnIOThread, "Waiting on an IO Thread might cause problems");
308
Fx.Assert(!
IOThreadScheduler
.IsRunningOnIOThread, "Waiting on an IO Thread might cause problems");