Browse Source

Remove schedWait event since it's not needed anymore by waiting code

Jérémie Laval 14 years ago
parent
commit
adfffa4c5b
1 changed files with 0 additions and 4 deletions
  1. 0 4
      mcs/class/corlib/System.Threading.Tasks/Task.cs

+ 0 - 4
mcs/class/corlib/System.Threading.Tasks/Task.cs

@@ -61,8 +61,6 @@ namespace System.Threading.Tasks
 		
 		TaskScheduler       scheduler;
 
-		ManualResetEventSlim schedWait = new ManualResetEventSlim (false);
-		
 		volatile AggregateException  exception;
 		volatile bool                exceptionObserved;
 		ConcurrentQueue<AggregateException> childExceptions;
@@ -196,7 +194,6 @@ namespace System.Threading.Tasks
 		{
 			this.scheduler = scheduler;
 			status = TaskStatus.WaitingForActivation;
-			schedWait.Set ();
 		}
 		
 		public void RunSynchronously ()
@@ -316,7 +313,6 @@ namespace System.Threading.Tasks
 		{
 			// Already set the scheduler so that user can call Wait and that sort of stuff
 			continuation.scheduler = scheduler;
-			continuation.schedWait.Set ();
 			continuation.status = TaskStatus.WaitingForActivation;
 			continuation.Slot = new CompletionSlot (kind, predicate);