Commit Graph
30 Commits
Author SHA1 Message Date
Marek Safar 01b7a50189 [corlib] Don't inline await continuations when the context does not allow it. Fixes #16548 2013-12-13 17:09:24 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Marek Safar 1f246742d8 Fix MaximumConcurrencyLevel. Fixes #8557 2012-11-23 12:42:33 +01:00
Marek Safar 455b845157 Fix scheduling of inlined tasks. 2012-05-30 12:08:08 +01:00
Jeremie Laval fa8a7b41b8 Fix Task child waiting for RunSynchronously 2012-04-16 12:38:00 +01:00
Marek Safar 06a1cd7045 TaskScheduler.FromCurrentSynchronizationContext cannot be constructed from null context 2012-04-03 13:43:19 +01:00
Jérémie Laval eea2894929 Fix RunSynchronously behavior with children Task. Fix bug #2777 part 2. 2012-02-03 15:38:15 +01:00
Marek Safar 0a66e607fc Remove never used Task::Execute parameter 2011-10-29 13:35:01 +01:00
Jeremie Laval 5a78256af1 Run unobserved task exception processing on the finalizer thread but without the need for a finalizer in Task 2011-10-26 12:32:37 +02:00
Jérémie Laval 4d6f6a6956 Remove TaskScheduler useless finalizer 2011-10-25 11:12:02 +02:00
Jérémie Laval be6e0bc8db Remove SchedulerProxy 2011-10-13 22:14:29 +02:00
Marek Safar 016ad09406 Add missing finalizer 2011-09-01 13:26:50 +01:00
Jérémie Laval f3cfa2841c Check and throw if a task reportedly executed isn't actually ran. Fix #470. 2011-08-28 15:10:03 +02:00
Jérémie Laval 17e6b57d07 Move old default task scheduler to Mono.Parallel 2011-08-20 14:12:09 +02:00
Jérémie Laval 3eba2920de Revert "Remove the old PFX Scheduler from the build"
This reverts commit d3f95a5230.
2011-08-20 13:49:13 +02:00
Miguel de Icaza d3f95a5230 Remove the old PFX Scheduler from the build 2011-08-19 23:50:40 -04:00
Jérémie Laval 7a92657e2e Potential fix for #690944 2011-06-09 18:43:55 +02:00
Koushik Dutta 98da8a2fc6 Fix bug where if a task is Start-ed with a specific scheduler,
that scheduler is ignored if it is in a thread owned by another
scheduler. Tasks should not be locked to the scheduler that
owns the calling thread.

Fix bug where TryExecuteTask does not actually try to execute
the task. Instead, TryExecuteTaskInline is called, which is
abstract. The TpScheduler implementation, the default, then
calls the internal method Task.Execute which then actually
executes the task. The problem with this is that only 3rd
party schedulers, can't actually execute a task, thus making
extending TaskScheduler impossible. (Unless they use some
serious Mono specific reflection hacks as I am now.)
2011-03-16 10:59:16 +01:00
Jérémie Laval c5e37f197d Allow people to optionally fallback to the old scheduler with an environment variable 2011-02-17 15:36:27 +00:00
Jérémie Laval 238a65fbfe Kill old IScheduler interface.
We still use the ParticipateUntil facility of IScheduler internally and provide a default implementation for pure TaskScheduler
2011-02-17 15:07:05 +00:00
Jérémie Laval 53e5b292ab Threadpool Task scheduler 2011-02-17 15:06:13 +00:00
Jérémie Laval 985b888796 Implement properly TaskScheduler's FromCurrentSynchronizationContext 2011-02-16 13:14:13 +00:00
Geoff Norton 83e999b7d7 Add pfx to the mobile profile 2011-01-25 01:51:17 -05:00
Jérémie Laval 2ac2887700 Use proper pattern for executing synchronous Task 2011-01-04 16:53:03 +00:00
Marek Safar d84d7c7eb9 Remove no longer used BOOTSTRAP conditionals 2010-12-29 12:41:12 +00:00
Jérémie Laval ed404a7b74 More parameter renaming 2010-12-15 16:39:58 +00:00
Jérémie Laval 2abec426fe Move NET_4_0 define checks at the right position under the licence text 2010-08-13 16:25:20 +01:00
Jérémie Laval 0d765d035d 2010-04-15 Jérémie Laval <[email protected]>
In class/System/System.Collections.Concurrent/:
   * BlockingCollection.cs:
   * ConcurrentBag.cs: Add BOOTSTRAP_NET_4_0

In class/System/System.Threading/:
   * Barrier.cs: Add BOOTSTRAP_NET_4_0

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs:
   * ConcurrentSkipList.cs:
   * OrderablePartitioner.cs:
   * Partitioner.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Collections/:
   * IStructuralComparable.cs:
   * IStructuralEquatable.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading.Tasks/:
   * Future.cs:
   * Task.cs:
   * TaskCanceledException.cs:
   * TaskContinuationOptions.cs:
   * TaskCreationOptions.cs:
   * TaskFactory.cs:
   * TaskScheduler.cs:
   * TaskStatus.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading/:
   * AtomicBoolean.cs:
   * CountdownEvent.cs:
   * SpinLock.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System/:
   * Tuple.cs:
   * Tuples.cs: Add BOOTSTRAP_NET_4_0 define

svn path=/trunk/mcs/; revision=155531
2010-04-15 19:01:26 +00:00
Jérémie Laval e531fc2677 2010-02-02 Jérémie Laval <[email protected]>
In class/corlib/:
   * corlib.dll.sources: Add System.Threading.Tasks/SimpleConcurrentBag.cs
   and System.Threading.Tasks/UnobservedTaskExceptionEventArgs.cs

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs:
   * ConcurrentQueue.cs:
   * ConcurrentStack.cs:
   * Partitioner.cs: Port to .NET 4 beta 2 API
   * ConcurrentSkipList.cs: Use Monitor for locking

In class/corlib/System.Threading.Tasks/:
   * Future.cs:
   * Parallel.cs:
   * ParallelLoopState.cs:
   * Task.cs:
   * TaskCompletionSource.cs:
   * TaskContinuationOptions.cs:
   * TaskCreationOptions.cs:
   * TaskFactory.cs:
   * TaskScheduler.cs:
   * UnobservedTaskExceptionEventArgs.cs: Port to .NET 4 beta 2 API
   * SimpleConcurrentBag.cs: Add a simpler implementation of ConcurrentBag
   for use with parallel loops as ConcurrentBag was moved to System

In class/corlib/System.Threading/:
   * CancellationToken.cs:
   * CancellationTokenSource.cs:
   * ManualResetEventSlim.cs:
   * SemaphoreSlim.cs:
   * SpinLock.cs:
   * SpinWait.cs:
   * ThreadLocal.cs: Port to .NET 4 beta 2 API

In class/corlib/System/:
   * AggregateException.cs:
   * OperationCanceledException.cs: Port to .NET 4 beta 2 API

In class/corlib/Test/System.Collections.Concurrent/:
   * CollectionStressTestHelper.cs:
   * ConcurrentBagTests.cs:
   * ConcurrentDictionaryTests.cs:
   * ConcurrentQueueTests.cs:
   * ConcurrentSkipListTests.cs:
   * ConcurrentStackTests.cs:
   * ParallelConcurrentQueueTests.cs:
   * ParallelConcurrentStackTests.cs: Update namespaces and tested methods

In class/corlib/Test/System.Threading.Tasks/:
   * FutureTests.cs:
   * ParallelTestHelper.cs:
   * ParallelTests.cs:
   * SnziTests.cs:
   * TaskCompletionSourceTests.cs:
   * TaskTest.cs: Update namespace and tested methods

In class/corlib/Test/System.Threading/:
   * CancellationTokenTests.cs:
   * LazyInitTests.cs:
   * ThreadLazyTests.cs: Update namespace and tested methods

svn path=/trunk/mcs/; revision=150716
2010-02-02 17:06:15 +00:00
Jérémie Laval b5d889b654 Author: Jérémie Laval <[email protected]>
Date:   Thu Jul 30 15:37:21 2009 +0200

First code drop of ParallelFx.

svn path=/trunk/mcs/; revision=139083
2009-07-30 13:56:32 +00:00