Commit Graph
30 Commits
Author SHA1 Message Date
Rodrigo Kumpera 0acb81dc64 [bcl] Replace more long fields with int to make them CAS friendly on 32 bits systems. 2013-09-04 14:47:27 -04: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 bc9310d661 Make Is64BitProcess internal to avoid mobile define 2013-01-17 17:57:11 +01:00
Jeremie Laval ddd2e48fba [corlib] Fix MaxConcurrencyLevel and MaxDegreeOfParallelism usage. Fix OOM error introduced in 1f246742d8. 2012-11-26 16:48:26 +00:00
Jeremie Laval 9dd091fb0a [corlib] Pass the right scheduler for worker number calculation. Fix #8559. 2012-11-26 12:12:54 +00:00
Jérémie Laval 8427a8b6e5 Rework Parallel.Invoke and add tests 2012-02-05 12:36:18 +01:00
Zoltan Varga 6743f339b4 Fix Parallel.Invoke () with only one action. Fixes #3225. 2012-02-04 23:20:15 +01:00
Jérémie Laval bb18263f72 Allow using a worker number that is greater than Environment.ProcessorCount for parallel loops. 2011-07-27 16:22:24 -04:00
Jérémie Laval 17317ee088 When finding best worker number in Parallel loops use current TaskScheduler instead of default TaskScheduler 2011-02-17 15:06:14 +00:00
Jérémie Laval 0e5106e896 Adapt Parallel.For stealing to all processor flavors 2011-02-01 13:19:58 +00:00
Jb Evain fa036727ae unbreak the build 2011-01-31 15:02:53 +01:00
Jérémie Laval f831cfdf27 Workaround stealing failure by disabling it in 32bits 2011-01-27 17:54:56 +00:00
Geoff Norton 83e999b7d7 Add pfx to the mobile profile 2011-01-25 01:51:17 -05:00
Jérémie Laval 02d7955fa4 Add a quirk for Parallel.For stealing 2011-01-24 18:19:56 +00:00
Jérémie Laval 8f13c9cee5 Backport stealing fixups to Parallel.For 2011-01-20 16:49:23 +00:00
Jérémie Laval 76b4f31bd7 Explicitely attach loop underlying tasks to their eventual parent 2011-01-06 11:42:55 +00:00
Jérémie Laval 1a29dfd260 Add prototype for Parallel.For long overloads 2010-12-15 17:09:47 +00:00
Jérémie Laval ed404a7b74 More parameter renaming 2010-12-15 16:39:58 +00:00
Jérémie Laval f50ff56d62 Simplify Parallel.ForEach loop execution 2010-11-12 14:02:12 +00:00
Jérémie Laval 248b261dfb Cleanup ForEach overloads in Parallel 2010-11-12 13:52:54 +00:00
Jérémie Laval 021deca604 Refine precedent algorithm for Parallel.For index stealing. 2010-11-11 18:12:48 +00:00
Jérémie Laval 8a37df630e Add a new lightweight stealing algorithm to Parallel.For 2010-11-11 18:12:48 +00:00
Jérémie Laval 92f611ac93 In Parallel.For, returns immediately if the initial bound is superior or equal to the upper bound. 2010-11-11 18:12:48 +00:00
Jérémie Laval f99729b759 Small logic fix in choosing step in Parallel.For 2010-11-11 18:12:48 +00:00
Jérémie Laval 0e22ba327d Simplify Parallel.For execution.
This commit remove the stealing path until a better solution for it is devised.
2010-11-10 16:32:28 +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 c9d1224910 2010-07-07 Jérémie Laval <[email protected]>
In class/corlib/System.Threading.Tasks/:
   * Parallel.cs: Fix Parallel.Invoke to use all data supplied in
   ParallelOptions
   * ParallelOptions.cs: Use CancellationToken.None for initialization

svn path=/trunk/mcs/; revision=160004
2010-07-07 13:14:27 +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
Marek Safar f23788b8df Moved ConcurrentBag to system.dll
svn path=/trunk/mcs/; revision=147541
2009-12-03 10:33:02 +00:00
Miguel de Icaza edc45ed19d Move some classes to new locations
svn path=/trunk/mcs/; revision=145679
2009-11-08 19:34:49 +00:00