Create PLinq query tasks attached to their eventual task parent by default
authorJérémie Laval <jeremie.laval@gmail.com>
Wed, 16 Feb 2011 13:11:42 +0000 (13:11 +0000)
committerJérémie Laval <jeremie.laval@gmail.com>
Wed, 16 Feb 2011 13:14:14 +0000 (13:14 +0000)
mcs/class/System.Core/System.Linq.Parallel/ParallelExecuter.cs

index 44ad177a3b79df586abb4dc70f1faebb1a737287..ee16845ff9065dc76851a6cc137b4fe1553446de 100644 (file)
@@ -117,7 +117,7 @@ namespace System.Linq.Parallel
                                                if (endAction != null)
                                                        endAction ();
                                        }
-                                 }, options.Token);
+                               }, options.Token, TaskCreationOptions.AttachedToParent, TaskScheduler.Default);
                        }
 
                        return tasks;