Skip to content

Commit

Permalink
Allow people to optionally fallback to the old scheduler with an envi…
Browse files Browse the repository at this point in the history
…ronment variable
  • Loading branch information
garuma committed Feb 23, 2011
1 parent 3d1b471 commit 81f2bb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mcs/class/corlib/System.Threading.Tasks/TaskScheduler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ namespace System.Threading.Tasks
[System.Diagnostics.DebuggerTypeProxy ("System.Threading.Tasks.TaskScheduler+SystemThreadingTasks_TaskSchedulerDebugView")]
public abstract class TaskScheduler
{
static TaskScheduler defaultScheduler = new TpScheduler ();
static TaskScheduler defaultScheduler =
Environment.GetEnvironmentVariable ("USE_OLD_TASK_SCHED") != null ? (TaskScheduler)new Scheduler () : (TaskScheduler)new TpScheduler ();
SchedulerProxy proxy;

[ThreadStatic]
Expand Down

0 comments on commit 81f2bb7

Please sign in to comment.